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 / How do i include multi...
Power Apps
Unanswered

How do i include multiple conditions in an IF statement?

(1) ShareShare
ReportReport
Posted on by 4
I am trying to wrap my head around how things are done on Power Apps. Struggling with with an if statement....basically I am working on an app that will be used to reserve seats for various activities. I have a button on my gallery, but I want it to display different text, depending on multiple conditions. In my SharePoint list, I have...
1- multi select person column called Participants
2- number column called 'Available Spots'
3- multi select person column called Waitlist
Here is the logic i am trying to get....
if the user is not in the Participants column and Available spots > 0....then the button should say "Click to reserve a spot"
if the user is already in the Participants column , then the button should say something like "You are already on the list"
if the user is not in the Participants column and Available spots <= 0..."No more spots, You can get on waitlist"
if the user is in the Waitlist column, then the text should be "Already on the waitlist"
 
So far, i have only been able to come up with 
 
If(
  IsBlank(
   'Activities', User().Email in ThisItem.Participants.Email
  ),
  "Click to reserve",
  "You are already on the list"
);
 
 
Challenge getting all the other conditions in. 
 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at
    I think this may be what you need.
    If(
       User().Email in Participants.Email,
       "You are already on the list",
       Available spots' > 0,
       "Click to reserve a spot",
       User().Email in Waitlist.Email,
       "Already on the waitlist",
       "No more spots, You can get on waitlist"
    )
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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