Flow Switch - Using expressions in Cases

Hello,

I was looking over the following page: https://docs.uipath.com/studio/docs/rpa-testing, and something caught my eye.
I see that the Case branches of that Flow Switch activity have conditions on them, rather than a fixed value.
I’ve tried to reproduce that behaviour but I’m not able to.
If someone could shed some light on how that can be done, I would greatly appreciate it.

P.S. I’m really hoping here that those are not just some “placeholder” labels put in there, which only allude to a more complex functionality…

Hello @lazarand,
I only know the way to enter conditions in some if-decisions within the switch


If You have some more cases it would be better to assign the name of your case to another variable and use that variable as condition in the switch.
grafik
Hope this helps
Regards
Moritz

1 Like

Hey @mm1904,

It helps, indeed!
Thank you for the swift reply!

I’m looking forward to the day when we don’t have to use Nested Ifs in a Flow Switch, as this can make it hard to read once you have more cases.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.