Loop

LANSA Composer

Loop

The Loop Processing Directive executes the block of its child items iteratively for each instance of the list variable named for it. Refer to 3.1.2 Variables and Lists for more information about the use of list variables.

You can specify the following details for a Loop Directive:

List name

Required. The List name specifies the name of the list variable associated with this loop. When the loop is executed it will iterate once for each contiguous indexed instance of the specified variable starting at index number 1.

Loop variable

Optional. If specified, the Loop variable specifies the name of a variable that will receive the indexed value of the list variable upon each iteration of the loop.

Index variable

Optional. If specified, the Index variable specifies the name of a variable that will receive the index value for each iteration of the loop.