mpfserver Manual
 
 
 mpf:toggle | toggle variable values
mpf:toggle

toggle values of a variable

{mpf:toggle  }
=variable
name of variable
||default
default value
||alternative
alternative value
|| [opr][condition]
condition may be used to check value


Example
{mpf:loop=4}
{mpf:toggle=cls||default||alternative}{mpf:cls}
{/mpf:loop=4}
this code would display:
default
alternative
default
alternative
 
 
2004 by master-p-formance.All rights reserved.
 
This manual is generated on the fly using mpfserver and MPFT (mpf transformation).