09-04-2007, 03:36 PM
I'm not really understanding how to compare the grabbed number to a number with a comma.
This is what I've tried so far:
So mainly what I'm looking for, is a way to do this like this:
This is what I've tried so far:
int i
str s.getwintext(id(1001"Crazy Browser"));val(s);; as an example test, I type 99,000 in my Adress bar. Then run this.
val(s 1 i );; and also what if the # in my Adress bar is like 300? then the results of i would be 3. Is there just an easy way to put
;something like if(s>99,000)end;else;do this? I don't understand how I could put 99,000 into a variable or something, without the "99,000" quotes. So it works.
out i;; here ( i ) is how many places over the decimal point is, in this case a ',' & it would be 2.
if i>2;end;; meaning if the # in my address has a ',' farther over then 2 places it will end, but what if it's like 10,275,381 in my Adress bar. That will also be 2 places over.
else
,_s="99000"; _s.setwintext(id(1001"Crazy Browswer"))
,endSo mainly what I'm looking for, is a way to do this like this:
