|
Articnal Apprentice
Joined: 19 Jan 2002 Posts: 107
|
Posted: Sat Oct 25, 2003 8:59 am
This should work!! |
Hi,i put next on the command line on zmud:
#if (%replace("170,288",",","")<@nextlvl) {#echo Happens} ---> Happens
#echo @nextlvl ---> 45511
#echo (%replace("170,288",",","")<@nextlvl) ---> (170288<45511)
Shouldnt the #if do nothing instead of doing the #echo?? [V]
Thanks for any help [^] |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Oct 25, 2003 12:44 pm |
The %replace leaves hidden quotes in its return. Since an arguement to the less than operator is a string it does an alphabetical comparison and that is why it is true. Use the %number function to force it work the way you want.
#if (%number(%replace("170,288",",",""))<@nextlvl) {#echo Happens} |
|
|
|
Articnal Apprentice
Joined: 19 Jan 2002 Posts: 107
|
Posted: Sat Oct 25, 2003 5:07 pm |
Thank you
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|