User Tools

Site Tools


set

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
set [2013/12/18 04:07]
l
set [2013/12/24 01:39]
l [A note about <<set>> and links]
Line 51: Line 51:
 But this is erroneous! All of these [[<<​set>>​]] macros are run as soon as the passage is displayed, in order. Clicking the "The lamp is red" link won't cause the <<set $lamp to "​blue">>​ tag to not have happened. But this is erroneous! All of these [[<<​set>>​]] macros are run as soon as the passage is displayed, in order. Clicking the "The lamp is red" link won't cause the <<set $lamp to "​blue">>​ tag to not have happened.
  
-To achieve the desired effect in the above passage, you should ​do the following:+To achieve the desired effect in the above passage, you should ​use [[link|setter links]]:
 <​code>​ <​code>​
 [[The lamp is red][$lamp = "​red"​]] [[The lamp is red][$lamp = "​red"​]]
 [[The lamp is blue][$lamp = "​blue"​]] [[The lamp is blue][$lamp = "​blue"​]]
 </​code>​ </​code>​
set.txt ยท Last modified: 2017/10/09 20:39 (external edit)