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 / Power Automate / Conditional is evaluat...
Power Automate
Suggested Answer

Conditional is evaluating False = True ! Execution goes down wrong path ! Awful !!!

(0) ShareShare
ReportReport
Posted on by
Hello,
I interrogated Copilot within the Run that shows the ridiculous result False = True (see image).
I agree with Copilot ; there is a bug in the fundamental process of evaluating Boolean math.

Here's the exchange:
Prompt :
Please explain how the component 'if BillingCat NOT NULL (RDate NULL)' is directing the execution to the True path when the component is correctly evaluating null != null as a False statement. For information, the component 'Set variable BillingCategory' shows the following JSON output : { "body": { "name": "BillingCategory", "type": "String", "value": null } }
Response :
The component 'if BillingCat NOT NULL (RDate NULL)' checks if the variable BillingCategory is not null using this expression:
{ "and": [ { "not": { "equals": [ "@variables('BillingCategory')", "@null" ] } } ] }
If BillingCategory is actually null (as shown in your JSON output), this condition should evaluate to False, and the flow should follow the False (Else) path, not the True path.
If the True path is being executed despite BillingCategory being null, possible causes:
    The value of BillingCategory is not truly null (e.g., it could be an empty string "" instead of null).
    There may be a logic or variable assignment issue earlier in the flow.
    The run history may show a previous value or a different branch being executed.
Tip:
Check the run history for the exact value of BillingCategory at the moment this condition is evaluated. If it is null, the True path should not be executed. If you see otherwise, there may be a bug or an unexpected value (like an empty string).
 
 
Thanks
Regards
Marc Petroff
LOGIC BUG 'AND' Table compare to Component.jpg
LOGIC BUG in Flow 'SIAE - Interventions - Demande Consolidée MàJ vers Suivi'.jpg
I have the same question (0)
  • Suggested answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 1 on at
     
    I do not think this proves that Boolean logic itself is broken. The more likely explanation is how Power Automate handles String variables and null values in conditions. Even though the run history displays the value as null, a String variable with a null value may be treated by the condition engine as an empty string "" during comparison. That means the condition may effectively behave like:
    "" is not equal to null //which returns True.
     
    A safer condition is:
    not(empty(variables('BillingCategory')))
     
    I agree that the run history display is confusing, because it gives the impression that Power Automate evaluated null != null as True.
    But the practical fix is to avoid direct null comparison on String variables.

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    SpongYe Power Platform Enthusiast [LinkedIn] | [Youtube| [My blog]

     

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my blog [@SpongYe] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard