Hello all,
Inside the Case of a Switch, is it possible to use expressions? e.g.
equals(parameters('parameter1'), 'someValue')
The Switch itself would be 'True' or 'False'.
This is a common construct in programming languages. In Power Automate, it seems that the expression can only go inside the Switch part, and literal values in the Case parts. Is that correct?
Thank you!
Solved! Go to Solution.
The Switch statement in Power Automate works the same way that a SWITCH() works in C#. It matches the variable provided to specific values. C# also won't let you use expressions in the target values. So I doubt you will see that functionality anytime soon in Power Automate either.
The Switch statement in Power Automate works the same way that a SWITCH() works in C#. It matches the variable provided to specific values. C# also won't let you use expressions in the target values. So I doubt you will see that functionality anytime soon in Power Automate either.
Thanks for sharing this.
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
45 | |
43 | |
38 | |
36 | |
23 |
User | Count |
---|---|
47 | |
31 | |
29 | |
29 | |
28 |