repeat ab four times and display (abababab)
{mpf:loop=4||data=ab}
display an list (use with closing token)
{mpf:loop=4}
... {mpf:loop/key} text or other elements to repeat ...
{/mpf:loop=4}
display an array (use with closing token)
{mpf:loop=4}
... {mpf:loop/key} repeat 4 times ...
... {mpf:loop=2} ... {mpf:loop/key} repeat twice ...{/mpf:loop=2} ...
{/mpf:loop=4}
store result of loop in myVar (use as embedded token)
{mpf:set=myVar||{mpf:loop=4||data=[mydata]}}
|