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 Automate / Is there a way to writ...
Power Automate
Answered

Is there a way to write "is not empty" as part of a multi-conditional if statement?

(0) ShareShare
ReportReport
Posted on by 96

Hi,

 

I'm trying to write an if statement to check whether a value given to an input box is a non-blank number and that the Ok button was pressed and throw an error otherwise. I know I could do this with nested If statements or a switch statement, but I'd like to put it in a single step if possible. In a previous question I asked, a user was helpful enough to give this helpful example as to how to make a multi-conditional If statement:

 

IF

%CurrentItem2['Column15'] = 'SARNIA' AND CurrentItem2['Column14'] = '3747' OR CurrentItem2['Column14'] = '3750' AND CurrentItem2['Column13'] = 'CLEARING' AND CurrentItem2['Column16'] <> '#VALUE!'%

=
True

 

But how would one write the "is not empty" condition that appears in the drop down menu of the If action as part of the statement?

IAQG_0-1618236851522.png

Also, how would one ensure that an input is a number and not a text value?


What I have so far is:

IAQG_1-1618237174361.png

Thanks for the assistance.

Categories:
  • Verified answer
    fraenK Profile Picture
    2,125 on at

    Empty string variable is:

    %""%
  • IAQG Profile Picture
    96 on at

    Much appreciated, thanks. I can probably make another question for this, but is there way to determine whether an input is a number and not a text input? My initial thought would be to add a math equation like X/2 to force an error then handle that, but I'd like to believe there's a more elegant solution than that.

  • fraenK Profile Picture
    2,125 on at
  • IAQG Profile Picture
    96 on at

    Interesting, that's what I ended up doing, but didn't know if there was a better way. Glad I stumbled on the right answer! Thanks for the help.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 245 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 233 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard