cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mscherotter
Level: Powered On

Conditition to test a variable for an empty string?

In a Condition block, how do I test a variable to see if is an empty string?  The authoring environment shows an error if I leave the value empty.

1 ACCEPTED SOLUTION

Accepted Solutions
pstrindlundcat
Level: Powered On

Re: Conditition to test a variable for an empty string?

@mscherotter, are you trying to handle a return variable from a flow and do a condition in PVA based on that? I had the same issue and I had to add some logic in the flow to set the value of the variable to "NotFound" and then pass that back into the PVA so that the condition had something to select. Yes i know, workaround to fix a simple feature gap but you know... Let's be agile!

View solution in original post

3 REPLIES 3
renatoromao
Level 8

Re: Conditition to test a variable for an empty string?

Hi @mscherotter ,

 

The user cannot send an empty value on chat. If the user sent " " (space + enter), the system show this message: 

"Could you tell me that using text? Currently, I do not process other kinds of inputs."

 

So, you don't need to validate empty or null variables on the chat.

pstrindlundcat
Level: Powered On

Re: Conditition to test a variable for an empty string?

@mscherotter, are you trying to handle a return variable from a flow and do a condition in PVA based on that? I had the same issue and I had to add some logic in the flow to set the value of the variable to "NotFound" and then pass that back into the PVA so that the condition had something to select. Yes i know, workaround to fix a simple feature gap but you know... Let's be agile!

View solution in original post

Microsoft Jeff_Zhang
Microsoft

Re: Conditition to test a variable for an empty string?

Thanks for reporting it guys, we're considering and investigating on this feature request now. 

 

-Jeff [MSFT] 

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,161)