Boolean
A Boolean value is one that is either true or false . ActionScript also converts the values true and false to 1 and 0 when appropriate. Boolean values are most often used with logical operators in ActionScript statements that make comparisons to control the flow of a script. For example, in the following script, the SWF file plays if the variable password is true :
onClipEvent(enterFrame) {
if (userName == true && password == true){
play();
}
}
For more information, see Logical operators.
The following table lists the ActionScript logical operators:
Operator | Operation performed |
&&
| Logical AND |
| |
| Logical OR |
!
| Logical NOT |