If amount is positif then option 1 if amount if negatif then option 2

if amount is positif then option 1 if amount if negatif then option 2

1 Like

Hi @Soudios

Use if activity to check the condition

Put the below syntax inside if activity

Yourstringvariable.Contains("-")

Use assign activity inside then the block

Amount = “option2”

In the else block

Amount=“option1”

Hope it solves your issue

Thanks
Robin

1 Like

Hi @Robinnavinraj_S

its working but how can i delete “-” after that ?

Tks

Hi @Soudios

You can use replace method to remove “-”

str.Replace("-","")

Hope it solves your issue

thanks
Robin

1 Like

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