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 / Help with multiple con...
Power Apps
Unanswered

Help with multiple condition if statement

(0) ShareShare
ReportReport
Posted on by 601

Hello,

 

I know this has been asked before but I'm really struggling to write my formula to check two conditions before evaluating to true or false. I understand that you need to nest them somehow because the formula will not complete any other steps once it recognizes a statement as true but I can't figure out how to write the formula. I have three buttons on my load screen for one of my apps(User, Manager and Read Only buttons). For the User button, I have a list of users in a SharePoint list that I use to determine whether this button/screen should be visible to the current user.

 

The formula for that is:

 

IsBlank(
LookUp(
CollectorMasterList,
Title = CurrentUserName
).Title
)

 

The formula for my Read-only button uses Flow, SharePoint Groups and variables to determine if this button should be visible. The formula for that is:

 

If(
OpsFinUser.isopsfinuser = "True",
true,
false
)

 

What I cannot seem to figure out is how do I create a formula for my 3rd button that says: If the current user is not in the user master list and isopsfinuser = "false" then the visible property on my 3rd button is = "true". 

 

Currently in my attempt to nest the conditions my formula is a mess and looks like this:

 

IsBlank(LookUp(CollectorMasterList, Title), And(Title = CurrentUserName).Title),OpsFinUser.isadminuser = "false"), "true");

 

Thanks for any help! 

 

@wyotim  

 

Categories:
I have the same question (0)
  • Verified answer
    CarlHRVA Profile Picture
    601 on at

    Found this thread here: https://powerusers.microsoft.com/t5/Building-Power-Apps/Help-with-Nested-IF-statement/m-p/482893

    which I somehow missed the last 2 hours. Figured it out based on the reply from mdevaney there. Formula ended up looking like this:

     

    If(IsBlank(
    LookUp(
    UserMasterList,
    Title = CurrentUserName
    ).Title
    And OpsFinUser.isadminuser = "false"),true)

     

    Thank you!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard