Articles → UIPATH → Flow Switch Activity In Uipath
Flow Switch Activity In Uipath
Purpose
Example
- Drag and drop the "Input Dialog" activity. The purpose is to get the value from the user. Based on the value entered by the user, we will perform different actions using the "Flow Switch" activity
- Set the output of the "Input Dialog" activity to the string variable "opt"
Click to Enlarge
- Drag and drop the "Flow Switch" activity. Each "Flow Switch" activity contains multiple points or nodes on each side. These points or nodes are visible only when the mouse is hovered over the "Flow Switch" activity
Click to Enlarge
- Attach three message boxes. In the "Flow Switch" activity, an arrow signifies the association
Click to Enlarge
- Click on the arrow and set the value of the "case" attribute to "A" and "B" for 2 message boxes
- Finally, set the "Expression" attribute of the "Flow Switch" activity to the variable "opt". It means that which message box to invoke depends upon the value of the "opt" variable
Click to Enlarge
- Save and run the bot
Output
Click to Enlarge