Skip to main content

Notifications

Topic Creation & Management
Answered

Conditition to test a variable for an empty string?

Posted on by

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.

  • Jeff_Zhang Profile Picture
    Jeff_Zhang on at
    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] 

  • Verified answer
    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!

  • renatoromao Profile Picture
    renatoromao 6,762 on at
    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.

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Getting Started…

Welcome to the Power Platform Community! We appreciate your visit…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 138,006

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,059

Leaderboard

Featured topics