\define VariableName() VariableValue<$list filter='[tag<VariableName>]'/>\define SomeMacro()
The value of the variable VariableName is $(VariableName)$
\endYou can make it exactly the same way as a global macro, put\define VariableName() VariableValueinto a tiddler with the tag $:/tags/Macro and anywhere you put <<VariableName>> you will get the variable.
You can use it in filters like this:<$list filter='[tag<VariableName>]'/>
Step 1: I created a global variable tiddler as suggested.
Step 2: I saved the above tiddler and created a new tiddler accessing the above global macro.
Step 3: I saved the second tiddler, and it didn't display the variable value.
Step 4: I edited the global variable tiddler by adding
<<variableName>>Step 5: I saved the global variable tiddler and the second tiddler worked correctly then.
This global variable does not work at all in other tiddlers.Once, I put a new line with <<variableName>> in the original variable tiddler, it works if I do <<variableValue>> in other tiddlers.
\define thisMacro()
<$list filter='[$(test)$]'>
</$list>
\end
<<thisMacro>>