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
Previous revision
set [2013/12/24 06:39]
l [A note about <<set>> and links]
set [2017/10/10 00:39] (current)
Line 39: Line 39:
 | /=          | Divides the variable on the left by the number on the right. ''​$var /= 2''​ is shorthand for ''​$var to $var / 2'' ​        | ''​$coins /= 2''​ | | /=          | Divides the variable on the left by the number on the right. ''​$var /= 2''​ is shorthand for ''​$var to $var / 2'' ​        | ''​$coins /= 2''​ |
  
 +====Multiple operations in one <<​set>>​ ====
 +
 +When you have multiple <<​set>>​ macro tags next to one another, you can replace them with a shorthand that uses only one <<​set>>​. Simply take the operations in each instance, and join them together using either commas or semicolons.
 +For instance, these three macro tags:
 +<​code><<​set $pants = "​large">>​
 +<<set $shoes = "​huge">>​
 +<<set $spats = "​classy">></​code>​
 +...can be changed to just this:
 +<​code><<​set $pants = "​large";​ $shoes = "​huge";​ $spats = "​classy">></​code>​
 ====A note about <<​set>>​ and links==== ====A note about <<​set>>​ and links====
  
set.txt ยท Last modified: 2017/10/10 00:39 (external edit)