Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Condition (And / Or) Help

(0) ShareShare
ReportReport
Posted on by 112

I need help understanding how to create a complex condition. Below is my test flow. It's constantly evaluating to true right now - going into the Yes branch.  I need help understanding the Conditional.  Also, what does the checkbox do next to each condition?

 

In text, here is what I'm trying to do: 

 

If varQualifier equals 'Non-Complience' (OR) varQualifier equals 'Non-Compliance (Veracode)'

(AND)

varAction equals '1 - Submitted' (OR) varAction equals '2 - Get Approvals'

(AND)

varApprovalStatus equals 'Not Started'

(AND)

varProductName is not equal to null

 

Here is my current flow:

 

Complex conditionComplex condition

 

 

  • ccc333ab Profile Picture
    1,144 on at
    Re: Condition (And / Or) Help

    When you are setting your string variable to null, it actually ends up blanking out that string variable. So instead of testing for null (which actually makes total sense but...), you can do one of two things instead: 

     

    1. Just leave the condition blank

    ccc333ab_1-1624910462466.png

     

    2. Test the length of the string and see if it is not equal to zero. 

    ccc333ab_0-1624910264135.png

    Where expression would be length(variables('varProdcutName')). 

     

    I don't know why but I tend to use the length expression myself. 

  • greddin Profile Picture
    112 on at
    Re: Condition (And / Or) Help

    Thank you ccc333ab for your help. It helped a lot.  Everything thing seems to be passing or failing where expected now except for the last condition.  varProductName is not equal to null.  When I pass in null for the varProductName variable it still evaluates to true. Can you tell from my screenshot if I'm missing something?

     

     

    2021-06-28_135700.png

  • Rodrigo Hentz Profile Picture
    on at
    Re: Condition (And / Or) Help

    Hi @greddin how are you?

     

    @greddin did you check the information provided by @ccc333ab ?

     

    Please let us know if more help is needed.

     

    Please let me know if this information helped to answer your question.

     

    Regards

     

    Rodrigo Hentz

    Microsoft Support Engineer

  • ccc333ab Profile Picture
    1,144 on at
    Re: Condition (And / Or) Help

     

    It appears you accidently created groups where they weren't required....but based upon your text explanation of your condition, I believe it should be:  

    ccc333ab_0-1624749359644.png

     

    And as regards to to the checkboxes, all they are there for is to allow you to "select" multiple items to enable you to group them, delete them, etc (after you select a few, you can click the ellipses (...) next to one of the fields and see the actions you can carry out). 

    Screenshot 2021-06-26 5.19.38 PM.png

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1