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 / 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? 

 

 

Categories:
I have the same question (0)
  • 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

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard