Goes to the corresponding activity on the workflow by exiting from a For Each activity.



  • Display Name - Renames the activity.


  1. Add a ForEach<> activity inside the initial Sequence.
  2. Create an IEnumerable<Int32> variable called x. Set its default value to {1,2,3,4,5}
  3. In the ForEach<> Values field, add the variable.
  4. Inside the ForEach<> activity, add an If activity.
  5. In the If Condition field, write item <= 3.
  6. Add a Write Line activity inside the Then field of the If activity.
  7. In  the Write Line Text field, type item.toString 
  8. In the If Else field, drag and drop the Break activity. This will exit from the ForEach<> activity.
  9. 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: