This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
print [2014/07/15 22:59] l |
print [2017/10/09 20:39] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <- [[function|About Functions]] --------- [[remember|Remembering Things With Variables]]-> | ||
+ | |||
=====<<print>>===== | =====<<print>>===== | ||
Line 21: | Line 23: | ||
====Changing values while printing them==== | ====Changing values while printing them==== | ||
- | The <<print>> macro has an extra feature: if you use "to", "+=", or other operators common to the <<set>> macro inside it, then it will change the variables //and// print the new values. | + | The <<print>> macro has an extra feature: if you use "to", "+=", or other operators common to the [[<<set>>]] macro in the <<print>>'s expression, then it will change the variables //and// print the new values. |
For example: | For example: | ||
Line 45: | Line 47: | ||
**Note:** you can only perform this shorthand form using variables! You cannot, for instance, write <<[[function|visited()]]>>. | **Note:** you can only perform this shorthand form using variables! You cannot, for instance, write <<[[function|visited()]]>>. | ||
+ | <- [[function|About Functions]] --------- [[remember|Remembering Things With Variables]]-> |