How do I determine the highest value in different variables?

Hey there,

I have used multiple ‘Get Text’ to get several values from a desired source (please see image below).

image

I’ve then removed the ‘GBP’ and spaces and have converted the numeric values into Doubles (for calculation purposes). How would I then take these variable values and figure out which one is the largest?

Thanks for helping with this silly question!

Can you store the values in a Double type Array and use doubleTypeArray.Max.ToString

1 Like

Hey, I was trying to do this but kept getting a (!) warning. Am I missing something in this code?:

new Double(4) { Var1, Var2, Var3, Var4}

(It is an array of double)

Thanks!

Try new double(3)

1 Like

Because it is base 0! I totally forgot ahaha. Thank you very much my friend.

1 Like

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