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 :
Power Platform Community / Forums / Power Automate / Condition giving false...
Power Automate
Unanswered

Condition giving false, although it should be true

(0) ShareShare
ReportReport
Posted on by 518 Moderator
Hello,
i have problems with conditions.
 
A Child flow returns a text variable named success: Values can be true or false
As it is a text variable i compared it just with true.
But i also tried string(true)

As you can see here the flow clearly return true
 
But the result of the condition is false.
And i do not understand why
 
Any idea?
Categories:
I have the same question (0)
  • Suggested answer
    abc 123 Profile Picture
    784 Moderator on at
    Condition giving false, although it should be true
    Sometimes getting the returned value gets wonky, especially if you've done a copy & paste.  Often, I will write the returned value to a local variable, such that I can see that the value is really what I believe the value is. 
     
    So, Init a new var, after the Run Child set the var, then use the variable in the Condition, instead of the light blue reference variable.
  • Suggested answer
    David_MA Profile Picture
    12,908 Super User 2025 Season 2 on at
    Condition giving false, although it should be true
    Try updating the right side of the condition with the expression builder and insert true from there. It will then show in pink in the condition if it is correctly entered. If that does not work, on the left side of the condition, write an expression such as equals(triggerOutputs()?['body/success'], 'true') on your success value. And also insert true with the expression builder on the right side of the condition.

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard