Improve Switch activity to allow Case expression instead of Case value

A Select - Case activity would be very helpful to avoid complex nested IF statement. Does UIPATH have a plan to develop this activity?

Improve Switch activity to allow Case expression instead of Case value

@ToddPull We have switch and flow switch activities. Would you elaborate the function of the activity you mentioned?

1 Like

I am looking for the traditional Select - Case statement in VB:

Select [ Case ] testexpression
[ Case expressionlist
[ statements ] ]
[ Case Else
[ elsestatements ] ]
End Select

The Switch Activity appears to be its equivalent although it limits the Case values to Integers :frowning:

@ToddPull

Its not limited to Int variables only. And you can pass other type of variables also here.

1 Like

As @lakshman said we could choose any data type
image

However the Case is limited to single constant value per Case.
It is annoying in some situations :frowning:

So in my opinion the request enhancement should be rather:
Improve Switch activity to allow Case expression instead of Case value

Cheers

1 Like

Hi,
Thank you for your suggestion. I added it to our internal ideas tracker for our team to consider.

I also hope this could be developed.

In stead of having several flow decisions in a row - it would be really nice to have a switch where you can write in all the if statements and the robot chooses the one that is true.