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 / If function - do sever...
Power Apps
Answered

If function - do several commands

(0) ShareShare
ReportReport
Posted on by 67
Hello everyone

I wanted to know if it is possible to execute multiple commands with an If function.

As an example:
 
If( x > y , Notify("Hello its true"), Reset(ComandBox1) & Reset(ComandBox2) & Notify("Hello its not true"))
 
Thank you for your help :)
 
Best regards
 
Primo
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,805 Most Valuable Professional on at
    I am not totally clear on your question, but this would be valid code for what you appear to be wanting to do
    If( 
       x > y, 
       Notify("Hello its true"), 
       Reset(ComandBox1);
       Reset(ComandBox2); 
       Notify("Hello its not true")
    )
     
    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    LinkedIn   
  • Primo Centurio Profile Picture
    67 on at
    @WarrenBelz Thank you so much, this is exactly what i wanted. Sorry for my unclear question
  • Suggested answer
    eetuRobo Profile Picture
    4,486 Super User 2026 Season 1 on at
    Yes thats possible.

    For example:


    Now if I press the Button it checks if X > Y and since 16 is greater than 12 I get notification: "Hello is true" and Combo boxes will keep their values:


    If I change X to be 9 then "Hello is not true" and both combo boxes will reset.


    EDIT: never mind the question was answered while I was typing mine 😅
  • Primo Centurio Profile Picture
    67 on at
    @eetuRobo Thanks anyway for your answer and for your time :) 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 556

#2
WarrenBelz Profile Picture

WarrenBelz 412 Most Valuable Professional

#3
Haque Profile Picture

Haque 296

Last 30 days Overall leaderboard