Page 1 of 1

10000 > 9500 = false?

Posted: Sun May 08, 2011 1:07 pm
by Poi
I am at a total loss here.. In my script's if statement:
if (text > GetAmtGoldBank(bankbox))

and for testing purposes, text is 10000 and the function returns 9500(I made triple sure that there are in fact the values)
but for some (probably) simple reason its turning out false.. if I put 10000 > 9500 directly it works, so I'm assuming it has something to do with using variables, so I am wondering if there is some sort of int() or num() function I can use that converts the variables to... calculatable(for lack of a better word) numbers

Re: 10000 > 9500 = false?

Posted: Sun May 08, 2011 4:42 pm
by mr bubbles
Try this

Code: Select all

if (CInt(text) > GetAmtGoldBank(bankbox))

Re: 10000 > 9500 = false?

Posted: Mon May 09, 2011 4:56 am
by Poi
Aha! perfect! Thank you so much :)