ARRAY Mode
Use ARRAY mode when you want to loop through all elements of an existing array variable.
To define a FOREACH command in ARRAY mode
-
- Insert the FOREACH command. The FOREACH dialog box appears.
-
-
In the Comment field, enter any comments you want to include for the command you are defining.
Note: Comments are only written to the rule procedure; use this field to explain the purpose of or provide a description of the command you are defining. -
-
- In the Type field drop-down list, select ARRAY.
-
- In the Array field drop-down list, select the array variable.
-
- In the Variable field drop-down list, select the variable with the same data type as the array's value. On each iteration, this variable contains the value of the current Array element.
-
- Click OK.