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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Condition always resul...
Power Automate
Unanswered

Condition always resulting in true

(0) ShareShare
ReportReport
Posted on by 74

Hello,

 

I have a flow where I'm trying to compare 2 values. One set from D365 BC Parse JSON, and the other set from a List Rows action. If one set, or the other set, are not equal to each other ((D365)Country != (Dataverse)Country or (D365)State != (Dataverse)State) then the condition should evaluate true and do some things, if false do some different things. Here's a screen shot:

smw356239_0-1711994208915.png

 

I've tried with the conditional action as well as a compose action with an expression. It always seems to evaluate true no matter what. The record I'm testing with shows in the compose 2 action that both country codes are equal, and that both county/state are null values (because these values weren't entered in CRM/Dataverse). I'm thinking the NULL values are what is causing this to be an issue, but could be wrong about that. Unsure, any help is appreciated. Thank you!

 

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @smw356239 

     

    bit confused, does the value dynamic content coming as output of parse json was also null ? or does it have some values ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • swebb111 Profile Picture
    74 on at

    So, for the country (top value in condition) both have values. For the state/province (bottom value) both are null. 

    smw356239_1-1711996497537.png

     

     

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @smw356239 

     

    null should be equal to null (gives result as true, i have tested), could you confirm both are null values or empty values or any of one is null and other empty?

     

    you can confirm whether a value is empty or not using empty() function.

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • swebb111 Profile Picture
    74 on at

    Yes, both values returned empty as True in a compose action I did. 

  • Chriddle Profile Picture
    8,443 Super User 2025 Season 2 on at

    An expression like

    A != B or A != C

    is always true if B != C 😉

     

    I assume that you want this:

    A != B and A != C

     

  • swebb111 Profile Picture
    74 on at

    What I'm trying to accomplish is comparing stringA1 and stringA2 against one another to see if they're equal, and stringB1 and stringB2 against one another. If either one of those aren't equal, do something. If they are equal do something else. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard