mpfserver Manual
 
 
 mpf:loop | cloning/repeating data
mpf:loop

clone strings and return them repeatedly, defined by number of loops (list of repeated items)

id of actual position in loop may be accessed using temporary variable "mpf:loop/key"

{mpf:loop  }
=[mynumber]
numeric value for number of loops. must be integer value
||data=[mydata]
data to be repeated (required if used as single token)
|| convert=[lowercase|uppercase|upperfirst]
convert number of loops
|| encode=[url|html|html-chars|crypt]
encode number of loops to another format
|| trim=[left|right|both]
remove whitespaces from number of loops
|| convert_section=[lowercase|uppercase|upperfirst]
convert section data (for use with closing token only)
|| parse_section=[yes|no]
parse section data for mpf-tokens (for use with closing token only)
|| encode_section=[url|html|html-chars|crypt]
encode section data to another format (for use with closing token only)
|| trim_section=[left|right|both]
remove whitespaces from section data (for use with closing token only)
|| [opr][condition]
condition may be used to check number of loops

{mpf:loop  } ... {/mpf:loop  }
=[mynumber]
numeric value for number of loops. must be integer value
|| convert=[lowercase|uppercase|upperfirst]
convert number of loops
|| encode=[url|html|html-chars|crypt]
encode number of loops to another format
|| trim=[left|right|both]
remove whitespaces from number of loops
|| convert_section=[lowercase|uppercase|upperfirst]
convert section data (for use with closing token only)
|| parse_section=[yes|no]
parse section data for mpf-tokens (for use with closing token only)
|| encode_section=[url|html|html-chars|crypt]
encode section data to another format (for use with closing token only)
|| trim_section=[left|right|both]
remove whitespaces from section data (for use with closing token only)
|| [opr][condition]
condition may be used to check number of loops
 
 
2004 by master-p-formance.All rights reserved.
 
This manual is generated on the fly using mpfserver and MPFT (mpf transformation).