web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to compare 2 strin...
Power Automate
Unanswered

How to compare 2 strings using condition

(0) ShareShare
ReportReport
Posted on by 33

Hi guys

I´m trying to compare two strings using a condition but the result is always wrong... can anyone help me?

For example: 

the value of compose 3 is 322,30 € (locale de-de), the value of compose 4 is 1000,00€ (locale de-de)

 

The check in the condition is: if compose 3 is equal or greater than compose 4 

 

Why would the result be true? 

 

Regards,

Lisa

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @lisa_garcia 

    Can you post screenshots of the outputs of Compose3 and Compose4  after a run please?

     

  • lisa_garcia Profile Picture
    33 on at

    @ScottShearer sure

    compose 4:

    lisa_garcia_1-1704726644868.png

     

    compose3:

    lisa_garcia_0-1704726631263.png

     

    sorry, it´s in german 🙂 

  • Verified answer
    Chriddle Profile Picture
    8,434 Super User 2025 Season 2 on at

    Since string comparison works different from Number comarison, you first have to convert these string to numbers.

    1. Remove the dot
    2. Replace the comma with a dot
    3. Remove the €
    4. Remove the whitespace
    5. Use float to convert
    float(
    	trim(
    		replace(
    			replace(
    				replace(
    					'1.000,00 €',
    					'.',
    					''
    				),
    				',',
    				'.'
    			),
    			'€',
    			''
    		)
    	)
    )

     

     

  • lisa_garcia Profile Picture
    33 on at

    Thanks so much! @Chriddle 

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

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard