How to use Break statement in switch activity?


anyone know this? it would be helpful with example. :slight_smile: :stuck_out_tongue:

thank you.

Are you referring to other languages where a switch activiy requires a break activity to exit the switch? If so, that isn’t required for UiPath as it is based on VB.NET which doesn’t use that syntax

The UiPath switch will follow a pathway/case based on the switch condition (or follow default if none of the conditions are met). Then, it will perform whatever actions you define in each switch statement. After all actions are performed, it automatically “breaks” out of the switch and continues to the rest of the workflow

EDIT: In Uipath the Break activity is used ONLY to break out of a for each loop.


Here you can know about the usage of switch.

Here you can know about break usage.


1 Like