display a system variable
{mpf:server/version}
use as conditional section (use with closing token)
{mpf:server/redirect||!=}
... will be returned if redirect variable is set ...
{/mpf:server/redirect||!=}
store system variable in a myVar (use as embedded token)
{mpf:set=myVar||data={mpf:server/version}}
iterate through an array
{mpf:myArray}
{mpf:myArray/{mpf:var/key}}
{/mpf:myArray}
if your variable name ends with "lib" and has an identifier, it is even simpler (the following will output "a b")
{mpf:set=myArraylib/id/1||data=a}
{mpf:set=myArraylib/id/2||data=b}
{mpf:myArraylib/id}
{mpf:myArraylib/id}
{/mpf:myArraylib/id}
iterate through an array that is stored within an array

 | you cannot iterate through sub arrays directly. that is what the function token is there for. |
{mpf:function=subArray}
{mpf:myArray}
{mpf:myArray/{mpf:key}/{mpf:var/key}}
{/mpf:myArray}
{/mpf:function=subArray}
{mpf:myArray}
{mpf:call=subArray||key={mpf:var/key}}
{/mpf:myArray}
|