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 / How to compare 2 strin...
Power Automate
Answered

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,290 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,644 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 293

#2
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 223 Most Valuable Professional

Last 30 days Overall leaderboard