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.650 students) : 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
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Top Kudoed Authors
Users online (2,373)