LOOP
The LOOP tag defines a section in an HCHL file which repeats an operation. This tag is very useful for listings of values where it is not known how many instances of the attribute exist. The loop tag is only used to initiate the loop action for a table; it cannot be seen in the output file's source code.
Start Tag | required |
End Tag | required |
Syntax | <LOOP [condition='condition value']></LOOP> |
Mandatory Parameters
There are no mandatory parameters for this tag.
Optional Additional Parameters
A value which is evaluated as an expression and determines if the loop is executed or not. |
condition
The condition parameter is a value which is always evaluated as an expression, whether it is enclosed in parentheses () or not. If the value is true (or a non-zero value), the loop is executed. If the value is false (or zero), nothing happens and the loop will be ignored (that is, the parser jumps to the </LOOP> tag and continues with the next element). The default value is `true' (if the condition parameter is not specifically mentioned).