FlashtodayÖ
FlashtodayÖ
Out of context: Reply #9
- Started
- Last post
- 11 Responses
- b34r0
It looks like a test for the mouse position...
essentially the part that looks like this;
( condition ) ? true : false
is a 'short hand' way of writing an if /else statement.
Also the first part, assigns the outcome of the condition (either true or false in this case) to 'AVar'. You can assign conditional statements to variables, then use them in if/else statements.
So 'AVar' actually becomes true or false. This is probably tested later in the code...
if ( AVar ) {
// do something
} else {
// do something else
}
Math.ceil is what 4CY said.
HTH. : )