Loops while specified condition is satisfied. The result is list made of processed bodies in each iteration.

Syntax

<while condition="expression"
       index="index_var_name"
       maxloops="max_loops"
       empty="empty">
    body
</while>

Attributes

Name Required Default Description
condition yes Expression that is evaluated for every loop and if its value is true, the body is executed.
index no Name of the index variable, initial value for the first loop is 1.
maxloops no Limits number of iterations. There is no limit if it is not specified.
empty no no Equal to surrounding body by empty element, producing empty result of iteration.

Example

See example from function processor.