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 / And Condition is not w...
Power Apps
Unanswered

And Condition is not working properly

(1) ShareShare
ReportReport
Posted on by 34

Hi All,

 

Why my And condition is not working on button click event. i want to pop up  a warning screen. if i test each single condition then my pop up is displaying. if i use both then only not working.

below is my and condition.

 

If( And(varWarningEmptyDataPopup=false, Value(sumTotalHours.Text)< 56 ), UpdateContext({varWarningPopup: true}));

Categories:
I have the same question (0)
  • KeithAtherton Profile Picture
    3,705 Most Valuable Professional on at

    Hi @sandeepvemula,

     

    Are you able to use the formula bar to view varWarningEmptyDataPopup and sumTotalHours.Text to ensure they are the values you expect?

     

    Also, if you change the action from UpdateContext() to Notify("Test"), can you see if the notification message is displayed?


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @sandeepvemula 

    What is your setting for the visible function of the popup warning screen?

    Are varWarningEmptyDataPopup and varWarningPopup supposed to be different variables?

    What exactly are the conditions you are requiring for the pop up screen to become visible?

     

     

     

  • sandeepvemula Profile Picture
    34 on at

    here if sum of total should be less then 56 then i need to show pop up. and before this pop up if there is any empty data then i need to show empty data pop up. here my condition is empty data pop up should be false and total hours is less than 56 then i need to show warning pop up else continue with next line of code.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard