Description
Goes to the corresponding activity on the workflow by exiting from a For Each activity.
Attributes
Misc
Display Name - Renames the activity.
Example
- Add a ForEach<> activity inside the initial Sequence.
- Create an IEnumerable<Int32> variable called x. Set its default value to {1,2,3,4,5}.
- In the ForEach<> Values field, add the x variable.
- Inside the ForEach<> activity, add an If activity.
- In the If Condition field, write item <= 3.
- Add a Write Line activity inside the Then field of the If activity.
- In the Write Line Text field, type item.toString
- In the If Else field, drag and drop the Break activity. This will exit from the ForEach<> activity.
- When executed, Break activity will exit the ForEach<> activity when the conditions inside the If activity are met.
The use case should look like the following screenshot:
The output should look like this in the Output panel: