repeat tail

Description

The repeat tail can be appended to each one of the repeat instructions described in the previous sections. It is used to optionally assign a counter and/or identifier to the repeat loop.

The counter is an integer variable starting with 1 and incremented by 1 at each pass of the repeat loop. This variable can be accessed by any instruction within the repeat loop.

The identifier is used in combination with the exit repeat and next repeat instructions, whenever the exit repeat or next repeat is not related to the innermost repeat loop of several nested repeat loops. For example, exit repeat means exiting from the most inner repeat loop, whereas exit repeat foo means exiting from the repeat loop with identifier foo.

Syntax

Table 8.17. repeat tail syntax

ProductionSyntaxLinks
repeat_tail( "counter" ":" variable_id ) ? ( "id" ":" identifier ) ?the section called “repeat tail”

Examples

see also:

See also