UiPath String Switch Example

By default, the UiPath switch activity will use an integer type. But the switch case activity can be changed to use any valid data type, including a String.

String, Switch and Uipath

They key to using the String in the switch activity is to configure the argument type in the properties panel. Just change the reference type of the UiPath Switch to String, use a String value in the expression, and your RPA program will work. And you’ll find it to be a great alternative to using the UiPath if activity to implement conditional logic in your RPA applications.

Use a String in UiPath switch activities to simplfy conditional logic.

This example was done on UiPath Studio installation 21.4.