cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mscherotter
Microsoft
Microsoft

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
Advocate I
Advocate I

@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
Super User
Super User

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.


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.300 students | PROMOTIONS) : English | Português
pstrindlundcat
Advocate I
Advocate I

@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

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

 

-Jeff [MSFT] 

Helpful resources

Announcements
March Update

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Virtual Agents innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

New Super Users

Meet the Power Virtual Agents Community Super Users!

Congratulations to our Season 1 2021 Super User Crew!

Top Solution Authors
Top Kudoed Authors
Users online (4,622)