How to check the number is positive or negative in uipath

Hi,

I have a query on how to check if the number is positive or negative.
In my app. If the number is within the brackets (1234) then it is negative number.

If the number is 1234 then it is positive number.
I have used get text activity to retrieve and if condition to check.but if the number is 1234 then also it’s going to the then condition where as it should come in else condition

How do I do it via bot.

Hi,

How about thew following condition?

Double.TryParse(yourString.Trim,New Double)

Regards,

1 Like

Hi @Bhagyashree_S

in condition give the

GetTextVariable.Contains("(")

Regards

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