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 - Using Connectors
Suggested Answer

Condition not working

(0) ShareShare
ReportReport
Posted on by 17
I have a condition with two expressions. Both are returning true (Vrai) but somehow the result is false (Faux). What am I doing wrong that two rights make a wrong?
Categories:
I have the same question (0)
  • Suggested answer
    chiaraalina Profile Picture
    1,061 on at
    Condition not working
    Hi
     
    The left Message 2 true (value coming from a connector), what type is it?
     
    I assume it is a text instead of a boolean. You are probably comparing string to boolean and that fails.
    You are doing:
    "true" (string from the message)
    = true (Boolean)
     
    That is why it is not "vrai". Can you check the variable type?
  • RL-27051433-0 Profile Picture
    17 on at
    Condition not working

    Here is the expression for Message 2:


    I've tried casting it as a boolean and string, and putting equals true as both boolean and string. so both (string=string) and (bool=bool), condition fails on both.
  • chiaraalina Profile Picture
    1,061 on at
    Condition not working
    Hi
     
    You want to know if the last 8 characters are numbers, correct?

    It actually sounds like this expression might be returning false at runtime.
     
    Can you verify that with two Compose actions before your condition:
     
    substring(outputs('Message'), sub(length(outputs('Message')), 8), 8)
     and
    isInt(substring(outputs('Message'), sub(length(outputs('Message')), 8), 8))
     
     
    Let me know!

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

Coming soon: forum hierarchy changes

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

Chiara Carbone – Community Spotlight

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

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 489 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 479 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 271

Last 30 days Overall leaderboard

Featured topics