Hi, 

If you want to define a variable in TW, there are different ways. 

1) set-widget: https://tiddlywiki.com/#SetWidget
2) vars-widget: https://tiddlywiki.com/#VarsWidget
3) \define aMacro() : see Macros in wikitext 
<https://tiddlywiki.com/#Macros%20in%20WikiText:%5B%5BMacros%20in%20WikiText%5D%5D%20%5B%5BMacro%20Definitions%20in%20WikiText%5D%5D%20%5B%5BMacro%20Calls%20in%20WikiText%5D%5D>

Variables have a scope. Try this eg: 

\define aMacro()
just some text.
\end

<$set name="var1" value="VAR1">
  <<var1>> - <<aMacro>><br>
  <$set name="var1" value="xxx">
    <<var1>> - <<aMacro>>
  </$set>
</$set>

<$vars var-a="asdf" var-b="bbb">
<<var-a>> - <<var-b>>
</$vars>

Have fun!
mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/715a6b72-8bcc-466a-80f9-3f9b526234fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to