cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jon112
Regular Visitor

Multiple operators in a switch.

Hi, I've just started learning C# and in a project I was working on I was able to take a switch statement and say something along the lines of "If A == B && A >= C" I noticed that when doing switch statements in power automate desktop you only have the option to choose a single operator in the cases. So I can really only do something like "If A == B" instead of a double check which would be useful for trying to get an automation that will only do an action if both conditions are met. I'd imagine there is a longer way of doing this than simply having double operators in the a case, but if there is I'm having trouble finding it. 

 

Any assistance would be much appreciated.

 

Thanks,

Jon

1 ACCEPTED SOLUTION

Accepted Solutions
MichaelAnnis
Super User
Super User

You can add a nested Switch below the first operator:

MichaelAnnis_0-1626734805582.png

 



View solution in original post

2 REPLIES 2
MichaelAnnis
Super User
Super User

You can add a nested Switch below the first operator:

MichaelAnnis_0-1626734805582.png

 



Jon112
Regular Visitor

It does make me wonder the efficiency of doing something like this. I guess that isn't really a problem when it's just checking variables though. Thanks for your help @MichaelAnnis 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,841)