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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Complicated IF conditi...
Power Apps
Unanswered

Complicated IF conditions in Power Apps

(0) ShareShare
ReportReport
Posted on by 89

Hello to everyone, 

 

can someone help me to create the code on Power Apps for the attached file? 

 

What I need is: 

 

 

Multiple Ifs.jpg

 

Edit: Is it even possible to happen? 

 

 

Multiple Ifs.jpg
Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Kostika

    Yes it is possible. Powerapps will execute the If() elements sequentially until it finds a true one then stops. So

    If(And{x1, y1, x2, y2, x3) , some action,

    And(x1,!y1) , some other action,...

    ) 

  • Kostika Profile Picture
    89 on at

    Hey @Drrickryp 

     

    I really appreciate your time for replying to my issue.

     

    I can't use And(x1,y1,x2,y2,x3) because if x2=false then I dont need to check about y2. 

    I mean if x2=false then it will break the And(x1,y1,x2,y2,x3).

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Kostika

    You don't get the concept. If the first And() is not true, PowerApps evaluates the next And() phrase and so on down the logic tree until finds a true phrase.

    See https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-if 

  • Kostika Profile Picture
    89 on at

    Hey @Drrickryp 

    Yep, I know I can create a huge multi-nested IF (because I have X1...X6 & Y1...Y6), but I was hoping for a different approach or faster solution. 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Kostika 

    Best I could do.  After all, you asked if it was possible, not practical.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard