company logo

FOR expression in document template

The FOR expression can be used to create iterative output to a result string. A FOR must be terminated by an END expression in any case. The text between the FOR statement and the END statement is repeated as long as the for condition is true.

Between the FOR and the END statement other template expressions might be defined.

$for ( persons.ToTop(); persons.Next(); $\

Name: $persons.name$, first name: $persons.first_name$

$end$

Definition: 

for_expr := _dollar _for for_condition _dollar