btw...
standard if statement:
code:
if(statement){
//true - do this
}else {
// false - do something else
}
so...
code:
var playMovie = true;
if(playMovie == true){
play();
}else{
stop();
}
is also the same as:
code:
var playMovie = true;
if(playMovie){
play();
}else{
stop();
}
here are some stardard comparsion operators:
'val1 == val2' checks if the two values are equal if they are it returns true.
'val1 > val2' checks to see if val1 is greater than val 2.
'val1 < val2' less than
'val1 >= val2' greater than OR equal to.
'val1 <= val2' less than or equal to.
------------------------------------------------
an exclaimation point ('!') means not or the opposite so...
'val1 != val2' checks if the two values are not equal if they are it returns true. which would be the same as '!(val1 == val2)'