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
Since string comparison works different from Number comarison, you first have to convert these string to numbers.
float(
trim(
replace(
replace(
replace(
'1.000,00 €',
'.',
''
),
',',
'.'
),
'€',
''
)
)
)
WarrenBelz
146,765
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional