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 Automate - Building Flows
Suggested answer

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?
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,515 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

Responsible AI policies

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

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 614 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 401 Moderator

#3
chiaraalina Profile Picture

chiaraalina 282

Last 30 days Overall leaderboard