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 Apps / Nested If Else Syntax
Power Apps
Answered

Nested If Else Syntax

(0) ShareShare
ReportReport
Posted on by 473

I have the following If/Else condition structure.

 

If (
 (Condition 1),
 If (Condition 1a),
 //Condition 1a action,
 If (Condition 1b),
 //Condition 1b action,
 ),
Else If(
 (Condition 2),
 If (Condition 2a),
 //Condition 2a action,
 If (Condition 2b),
 //Condition 2b action,
 );

 

 
Can I get assistance on correcting the syntax, because I can't get it right despite what I have tried.

Thank you.

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @gymcode ,

     

    Please try this

    If(var="condition1",If(var2="condition3",action1,action2),var="condition2",If(var2="condition4",action3,action4))

     

    Best Regards,

    Wearsky

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard