Skip to main content

Notifications

Community site session details

Community site session details

Session Id : VBHXpMmjWTYo7hJrBREfcH
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,570 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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

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

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
rpersad Profile Picture

rpersad 16

#2
David_MA Profile Picture

David_MA 10 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 8 Super User 2025 Season 1

Overall leaderboard