For
...
For Each is an advanced Route Step that lets you loop through a list of items and call into a Route for each item in the list.
Each item is processed in turn with the Route called and subsequent items in the list only being processed once the Route returns.
If the Route .
To use the 'For' route Step you must also have and 'End For' step.
Each step between the For and End For route steps are executed for each item in the List passed to the For step.
If a Route Step hangs up the call, no further items will be processed.
Before To you can use the For Each action you must provide a variable which contains a list of items. There are a number of Actions that will load various lists into a variable including:
- Select From Roster
...
The Route to call for each item in the list.
List Variable Name
The name of the variable that contains the list. The list must have been loaded into the variable in a prior step.
Dto Variable Name
The name of a variable to create to hold the item that is being processed.This variable name can be referenced in the Route that is called.