aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.95 - [eq] Built-In

Mnemonic aid: eq for EQual to zero content

See also:  [ne] 

If value is empty, the conditionalContent will be emitted. The style is only evaluated if value is empty. sep defaults to the comma.

Note: Please see  [even]  to learn how styles work with this operation.
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 the sep character and nothing else.


[eq (sep=X,)(style=styleName,)contentXconditionalContent]

1 [eq stuff,not empty][eq ,empty]
2 [eq sep=|,stuff|not empty][eq sep=|,|empty]
3 [eq ,empty][eq stuff,not empty]
4 [eq sep=|,|empty][eq sep=|,stuff|not empty]
5 [eq ,][eq stuff,not empty]
6 [eq sep=|,|][eq sep=|,stuff|not empty]

1 empty
2 empty
3 empty
4 empty
5
6
1 empty 2 empty 3 empty 4 empty 5 6

Other built-ins used here:  [ne] 

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