Ok, here's my issue. How can I get a string to become a number? It seems like it should be simple, but I just can't find it. I can figure out how to manually convert a number to a string, but not a string to a number.
Here's my little sample code:
code:
var varone = "2345";
var vartwo = "600";
//POINT X
if(varone < vartwo){
//this will be a completely false statement
trace(varone + " is less than " + vartwo);
}
So what can I do at "POINT X" so that they actually become numbers and that message doesn't come up?
Thanks in advance!
Mike