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 / Why is If condition no...
Power Automate
Answered

Why is If condition not working in this example?

(0) ShareShare
ReportReport
Posted on by 170

Hello everyone,

 

I have a set of dates that sometimes only span a day but sometimes span several days, like in the picture below.

TelmoERF96_0-1696950045664.png

I have split that information, separating the date from the location leaving me with just the date. I want to format it in a certain way so I created a condition that would run a different set of actions whether the date was only one day or more than one, and as a form of differentiating both of the options I used the "-" separating the days as a condition for my If. So why isn't it recognizing it as such since it's not entering the condition.

TelmoERF96_1-1696950488299.png

IF Contains(GFMAList[0], $'''-''', False) THEN

 

And this is the text used

TelmoERF96_2-1696950546663.png

 

Does anyone know what could be the reason that the condition is not being met?

 

Thank you in advance

 

Telmo Ferreira

 

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @TelmoERF96 

     

    I have tried a simmilar version 

    Nived_Nambiar_0-1696954521046.png

    Nived_Nambiar_1-1696954582532.png

     

     

    I got the correct result

     

    Could you verify the same ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

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

  • TelmoERF96 Profile Picture
    170 on at

    You're right Nived, thank you. Today it is working I don't know what happened. 👍

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 273 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 235

#3
David_MA Profile Picture

David_MA 172 Super User 2026 Season 2

Last 30 days Overall leaderboard