aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.134 - [eval] Built-In

Mnemonic aid: eval for EVALuate

See also:  [dup] 

content is duplicated N times.

Caution:

This is not the same as  [dup] 

 [dup]  evaluates the content once and then duplicates it N times;  [eval]  can call a style and re-evaluate it on every iteration, passing the content to the style.


[eval (style=styleName,)N,content]

[local x 0]
[dup 5,foo[vinc x] ]
----
[style binky [b][vinc x] ]
[local x 0]
[eval style=binky,5,bar]

foo1 foo1 foo1 foo1 foo1
----
bar1 bar2 bar3 bar4 bar5
foo1 foo1 foo1 foo1 foo1 ---- bar1 bar2 bar3 bar4 bar5
Note:

As interation and nesting depth of iterations can both create large amounts of output, both may be limited by the invocation parameters xlimit and dlimit. See this page for details on how to set those for class invocations.

Other built-ins used here:  [b] ,  [dup] ,  [inc]  and  [local] 

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