TW Fundamentals: vars vs let

The difference in a "picture":


The code for copy-pasting into your TiddlyWiki instance:

<$vars msgP1="Hello"
       msgP2 = "World!"
       theMsg={{{ [<msgP1>] [<msgP2>] +[join[ ]] }}}>

Using the vars widget:

* msgP1: <<msgP1>>
* msgP2: <<msgP2>>
* theMsg: <<theMsg>>

</$vars>

<$let msgP1="Hello"
      msgP2 = "World!"
      theMsg={{{ [<msgP1>] [<msgP2>] +[join[ ]] }}}>

Using the let widget:

* msgP1: <<msgP1>>
* msgP2: <<msgP2>>
* theMsg: <<theMsg>>

</$let>

A textual explanation to follow ...

No comments: