Skip to main content

Notifications

Community site session details

Community site session details

Session Id : KA8Kds+iz8dbFnlu2J4Dz1
Power Automate - General Discussion
Answered

How to write multiple if conditions and statements using expression in power automate

Like (0) ShareShare
ReportReport
Posted on 9 Apr 2023 08:56:59 by 453

Hello All, 

 

 

How to write multiple if conditions and their statement using Power Automate expressions ?

 

Really appreciate if anybody had worked out this before, 

 

 

Thanks in advance,

  • Verified answer
    Nived_Nambiar Profile Picture
    17,654 Super User 2025 Season 1 on 09 Apr 2023 at 18:05:12
    Re: How to write multiple if conditions and statements using expression in power automate

    Hi @AK88 

     

    You can write it in different ways 

     

    1. Nested If 

     

    Expression : if(condition1, if(condition2,'statement2','statement3'),'statement1')

    Here we first validate condition1 if it is true, then we validate condition2, if condition 2 is True, then statement2 is executed else statement3 is executed.

    If condition1 is False, then statement1 is executed.

     

    Using And operation

     

    If(and(expression1,expression2),'statement1','statement2')

     

    Using Or operator

    if(Or(expression1,expression2),'statement1','statement2')

     

    Hope it helps 🙂

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Automate - General Discussion

#1
stampcoin Profile Picture

stampcoin 29

#2
Pstork1 Profile Picture

Pstork1 22 Most Valuable Professional

#3
David_MA Profile Picture

David_MA 20 Super User 2025 Season 1

Overall leaderboard
Loading started