[[FOR_EACH_AS:listname|item]]
Interates through the list and places each value into the variable whose name is designated by the item parameter value. The following statements are executed before [[END_FOR_EACH_AS]] for each item in the list. A list is equivalent to a single dimension indexed array in PHP.
Example:
[[FOR_EACH_AS:studentlist|name]]
[[PRINT:name]][cr]
[[END_FOR_EACH_AS]]
Outputs the student list one name per line.
[[FOR_EACH_AS_&:listname|valuename]]
Same as FOR_EACH_AS but used to directly modify array elements within the loop assigning the values by reference.