Check variable is numeric

Hi Guys,

i have a variable that is storing numeric value, how can i check that the variable is storing the value?

Variable.IsNumeric

Check This in the IF condition - If True - Means the varaible is storing a Numeric Value.

Edit :

Use like This :
image


Mukesh

Debug workflow and in local Window you can see stored data for the particular variable

Hi,

Can you try the following expression in If condition?

IsNumeric(yourStringVar)

Regards,

1 Like

i have followed what you have said but i am getting an error
image

@mukeshkala the variable is string however when i change it to integer i get even more errors

What is the Error ? Can you hover over the blue icon and see the error ?

yeah sure, please see below


@mukeshkala

Try IsNumeric(WRNumber.ToString)

@nick.v - pls try strVariable.IsNumeric

2 Likes

topman thank you @GBK

1 Like

… Still getting the same error
Can anyone help me on this

@Sharmistha_Kundu Try the IsNumeric at the end of the expression :

Currently : IsNumeric(yourExpression)

Change it to : (yourExpression).IsNumeric

Check if it works.

1 Like

Perfect, Works fine
Thanks You

1 Like