Verify existing minus and move it at the first of the string

Hello All,
I have this format of string “5.1,16-”
I want to verify if the string contains - if yes , put it at the first of the string
“-5.1,16”

Best regards

Hi @nora_ziani

Try the below solution

StringManipulation.xaml (7.0 KB)

Hello,

You can use :
If(YourString.EndsWith(“-”),String.Concat(“-”,(YourString.Replace(“-”,“”))),YourString)

Regards,
Rohith

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.