Go to the first, previous, next, last section, table of contents.


WHILE - Conditionally loop over a Template Block

Conditionally repeated block. Its arguments are evaluated (see section EXPR - Evaluate and emit an Expression) and as long as the result is non-zero or a string with one or more bytes, then the condition is true and the text from that point until a matched ENDWHILE is emitted.

[+WHILE <full-expression> +]
emit things that are for the true condition[+

ENDWHILE +]

<full-expression> may be any expression described in the EXPR expression function, including the use of apply-codes and value-names. If the expression yields an empty string, it is interpreted as false.


Go to the first, previous, next, last section, table of contents.