web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Use AND / OR with cond...
Power Automate
Answered

Use AND / OR with condition

(2) ShareShare
ReportReport
Posted on by 12
Hello dear Power Automate Community,
 
I'm happy to join !
 
I'm migrating my automated processes from Automation Anywhere to MS PAD.
 
Could someone help me finding the equivalent of following Automation Anywhere "if" statement in PAD:
 
 
I found "If windows" and "If window contains" actions that could suit with each one of the condition, but how to use them with AND / OR within the same "if" statement  ?
 
Thanks in advance,
I have the same question (0)
  • trice602 Profile Picture
    15,402 Super User 2025 Season 2 on at
    Hi,
     
    Here's an example that uses Contains, AND, and OR.  I made this up with some variables in a flow, so not a real condition but the formatting will help you with your question.
     
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     

     
  • OW-29071318-0 Profile Picture
    12 on at
    Hi trice602,
     
    Thanks for your answer.
     
    How to use your answer with "If window" and "If window contains" ? To have the same condition as the one in my example ?
  • Suggested answer
    NsL Coder Profile Picture
    475 Super User 2025 Season 2 on at
    power automate support for and/or condition is pretty good.
     
    You can either use expression or the Condition action which allows you to do "group" of condition
     
    Expression:
    and(condition1, or(condition2, condition3))
     
    Condition action:
    AND (
            condition1
            OR (
                    condition2
                    condition3
           )
    )
  • OW-29071318-0 Profile Picture
    12 on at
     
    Thx for your answer.
     
    How would your suggestion "Condition action" look like with my case. I do not find any AND / OR option for condition action in PAD
  • NsL Coder Profile Picture
    475 Super User 2025 Season 2 on at
    Apology, I didn't realize you are using power automate desktop. I do not use that, so can't help. My replies was relating to power automate cloud flow. not desktop flow, though i cannot imagine it to be too different.
  • Verified answer
    cwischnewski Profile Picture
    142 on at
    Tom is right for the generic If under the Conditionals section.  More into can be found at this link, if you are interested to learn more about what you can do: https://learn.microsoft.com/en-us/power-automate/desktop-flows/variable-manipulation
     
    But for your question, I don't think that helps.  On the more specific versions of the If you mention like the "If window contains" and "If web page contains", they are what they are.  I would say to just nest them or use them to set boolean variables that you then use in the traditional If where you can build the more complex conditional.
  • CU06081340-0 Profile Picture
    4 on at
    I tried with that expression:
    but having a syntax error.
     
    What would be the right expression ?
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard