The Loop Processing Directive executes the block of its child items iteratively for each instance of the list variable named for it. Refer to 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. |
Distinct values? |
Defaults to No. If you select Yes, then the Loop Directive processes only the values in the list that have distinct values. Loop iterations for the second and subsequent occurrences of the same value will be skipped without executing the block of child items at all. For example, consider a list containing the values: APPLE BANANA ORANGE BANANA LEMON If you select Yes for Distinct values, the loop iteration for the second instance of BANANA will be skipped. |