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 / Copilot Studio / Conditition to test a ...
Copilot Studio
Answered

Conditition to test a variable for an empty string?

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

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.

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    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.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @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!

  • Jeff_Zhang Profile Picture
    Microsoft Employee on at

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

     

    -Jeff [MSFT] 

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 > Copilot Studio

#1
Mohsin Ali Profile Picture

Mohsin Ali 129

#2
11manish Profile Picture

11manish 127 Super User 2026 Season 2

#3
anirudhev Profile Picture

anirudhev 63

Last 30 days Overall leaderboard