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 / How do you handle doi...
Power Apps
Answered

How do you handle doing multiple actions in 1 IF statement?

(1) ShareShare
ReportReport
Posted on by 17
New to PowerApps - please be gentle!
 
I'm not sure how to layout an IF statement that would do multiple things.
 
for example:
 
IF Form update is successful,    
1. Show a successful notification
2.Reset form
3. Navigate to another page  many thanks
 
 
In my coder days it would be this...
 
IF (submit = "worked") 
{
//do this
//then do this
/and so on
}
Else
{
//do this
//then do this
//and so on
 
}
 
 
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,127 Most Valuable Professional on at
    Its basically the same. You just need to use the line end character for your particular region between each statement. For the US that character is ';'
     
    if (submit = "worked",
    do this; then do this; and so on,
    do this; then do this; and so on)
     
     

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • StuDev Profile Picture
    17 on at
    Thank you!
     
    I think I get it now.
     
    My actual code:
     
    If(varSuccess, //if the data has updated correctly..
    Notify("Update Successfull",NotificationType.Success);
    Navigate(ViewMainScreen_TABLE,ScreenTransition.Fade);
    ResetForm(FormShiftData);
    ResetForm(FormRejectData)
    ,
    //else
    Notify("Update Failed",NotificationType.Error)
    )

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 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard