aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.91 - [odd] Built-In

Mnemonic aid: odd for ODD number

See also:  [even] 

If the number is odd, the content will be emitted. The style is only evaluated if the number is odd.

Note:

conditionalContent is generated either way; the only difference is whether it appears in the output stream or not.

To avoid generating any content, put a trailing space after the value and nothing else.


[odd (style=styleName,)value conditionalContent]

[local foo x]
[local bar x]
[style hitfooy [local foo y]]
[style hitbary [local bar y]]
[v foo] [v bar]
[even style=hitfooy,3 three is even][odd style=hitbary,3 three is odd]
[v foo] [v bar]

x x
three is odd
x y
x x three is odd x y

Other built-ins used here:  [even] 

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