aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.185 - [case] Built-In

Mnemonic aid: case for CASE in switch

See also:  [for] ,  [in] ,  [stage]  and  [switch] 

This built-in selects a  [case]  from a  [switch]  that has assigned styles based on specific cases.  [switch]  instances are global. The examples below demonstrate basic use:


[case (sep=X,)switchName caseXcontent]

[style foo foo([b])bar]
[style bar bar([b])foo]
[switch test1 1|foo,2|bar]
[case test1 1,bah]
[case sep=|,test1 2|humbug]
[style rude dude:[b]!]
[style remark remark:"[b]"]
[style huh ??([b])??]
[switch csep=^,isep=$,test2 A$rude^B$remark]
[case test2 A,shhhh]
[case test2 B,speaking extemporaneously]
[switch default=huh,test3 x|foo,y|bar]
[case test3 x,with-foo]
[case test3 y,with-bar]
[case test3 z,with-nothing]

foo(bah)bar
bar(humbug)foo
dude:shhhh!
remark:"speaking extemporaneously"
foo(with-foo)bar
bar(with-bar)foo
??(with-nothing)??
foo(bah)bar bar(humbug)foo dude:shhhh! remark:"speaking extemporaneously" foo(with-foo)bar bar(with-bar)foo ??(with-nothing)??

Other built-ins used here:  [b] ,  [style]  and  [switch] 

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