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 Automate
Unanswered

IF condition error

(0) ShareShare
ReportReport
Posted on by 75

if there is an error for an if condition, then it should display "Wrong Input" without using a sepearte display message action.

  • VishnuReddy1997 Profile Picture
    2,666 Super User 2026 Season 1 on at

    Hi @bensat2 ,

     

    In PAD for this action doesn't include any exceptions. You need setup it alternatively using display message or set variable only.

     

    (Note:- if you got your solution you can mark as solution and gives kudos)

     

    Thanks & Regards

    Vishnu Reddy

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Can you clarify more what are you needing? It sounds like you just need to put some actions in the Else statement, but unsure what is desired here...

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    I'm taking a guess here cuz you didn't give us much:

     

    If you have a User Input that requires a number, and if what they entered was not a number, then you want to force them to re-enter the input, then you want to use a label to send them back up to the top before the IF.

     

    Example:

    LABEL TryAgain
    Display.InputDialog Title: $'''Enter a number''' Message: $'''No really, it has to be a number''' InputType: Display.InputType.SingleLine IsTopMost: True UserInput=> UserInput ButtonPressed=> ButtonPressed3
    BLOCK 'Not a number'
    ON BLOCK ERROR
    GOTO TryAgain
    END
    Text.ToNumber Text: UserInput Number=> UserInputNumber
    END

     

    MichaelAnnis_0-1713997375423.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard