PDA

View Full Version : If statement operators in flash



TheAgent
11-16-2010, 12:04 PM
Hello,

Is there a way to check from a a range of a number is true, for example i have an event in actionscript that triggers when Score >= 9500 however it keeps triggering that if statement because my score keeps increasing above 9500, how can i either stop it from triggering or check withing a range of numbers for example.


if ( Score == 9500-10100 )
{

//do something cool

}

I know what i did is probably wrong but its how i can explain it

Thanks

TOP-Proto
11-16-2010, 01:08 PM
if ( Score => 9500 && Score =< 10100 )

my => might be backwards :D i prefer the faces :D

TheAgent
11-16-2010, 01:45 PM
thanks that helped : ]