For Each
Executes the activity contained in its Body for each item in a specified Values collection. When adding a ForEach activity to the designer, we must set the type of the item for the Values Collection.
note
Most of the properties on this activity can be set using an expression. That is why when we set a string value, we must put that string value under "".
#
Designer Properties- Item The item of the specified Values collection.
- Values The activity's collection of inputs for the execution of the Body activity action.
- Body The ActivityAction to be executed for each item in the Values collection.
#
Properties#
General PropertiesSee General Properties.
#
MiscSee Misc.
#
Out ErrorSee Out Error.
#
ExampleDisplay range Values to output
In this example, we use for each to display the values from 1 to 5 in the output panel.