web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 06TVKp8H9M+EQptweSMIfH
Power Automate - Building Flows
Unanswered

Condition (And / Or) Help

Like (0) ShareShare
ReportReport
Posted on 26 Jun 2021 19:41:40 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

 

 

I have the same question (0)
  • ccc333ab Profile Picture
    1,144 on 28 Jun 2021 at 20:01:43
    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 28 Jun 2021 at 19:03:49
    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 28 Jun 2021 at 12:46:16
    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 26 Jun 2021 at 23:21:34
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete