How to compare two variables with data type double

Hello,

I have 2 variables with the data type double, I want to compare if they are greater or smaller.

Example :
Variable 1 = 123.4
Variable 2 = 234.90

I want to check if Variable 1 > Variable 2

have you tried an if activity with the condition Variable1 > Variable2

1 Like

HI @aishwarya1

Are you facing any error using this

Regards
Sudharsan

Sorry, I have one data type as string and the other as double.

In this case Variable 1 > Variable 2 isn’t working

HI @aishwarya1

You can try with this

CDbl(Variable1) > CDbl(Variable2)

Regards
Gokul

1 Like

Lets say var1 is the string @aishwarya1

Cdbl(Variable1) > Variable2

Regards
Sudharsan

1 Like

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