aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.39 - [vdec] Built-In

Mnemonic aid: vdec for Variable DECrement

See also:  [gload] ,  [global] ,  [graw] ,  [gsave] ,  [gv] ,  [load] ,  [local] ,  [lv] ,  [page] ,  [raw] ,  [save] ,  [v]  and  [vinc] 

 [vdec]  decrements a variable. If quiet=1 is provided, then it will not generate any content. If pre=1, then it will produce the value of the variable before the increment. Otherwise it produces the value of the variable after the decrement.

 [vdec]  prefers a local variable, but if a local does not exist, then it will decrement a global if that exists.


[vdec (pre=1,)(quiet=1,)variableName]

1 [local x 4]
2 [vdec x]
3 [vdec pre=1,x]
4 [v x]
5 [vdec quiet=1,x]
6 [v x]
7 [vdec x]

1
2 3
3 3
4 2
5
6 1
7 0
1 2 3 3 3 4 2 5 6 1 7 0

Other built-ins used here:  [local]  and  [v] 

Keyboard Navigation
, Previous Page . Next Page t TOC i Index

Valid HTML 4.01 Loose
 

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses Python 2.7