aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.38 - [vinc] Built-In

Mnemonic aid: vinc for Variable INCrement

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

 [vinc]  increments 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 increment.

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


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

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

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

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