User Guide

160 ActionScript language elements
and logical AND operator
condition1 and condition2
Deprecated since Flash Player 5. Macromedia recommends that you use the logical AND
(
&&) operator.
Performs a logical AND (
&&) operation in Flash Player 4. If both expressions evaluate to
true, the entire expression is true.
Availability: ActionScript 1.0; Flash Lite 1.0
Operands
condition1 : Boolean - condition1,condition2 Conditions or expressions that evaluate
to
true or false.
condition2 : Boolean - condition1,condition2 Conditions or expressions that evaluate
to
true or false.
Returns
Boolean - A Boolean result of the logical operation.
See also
&& logical AND operator
! logical NOT operator
! expression
Inverts the Boolean value of a variable or expression. If expression is a variable with the
absolute or converted value
true, the value of !expression is false. If the expression x &&
y
evaluates to false, the expression !(x && y) evaluates to true.
The following expressions illustrate the result of using the logical NOT (!) operator:
! true returns false! false returns true
Availability: ActionScript 1.0; Flash Lite 1.0
Operands
expression : Boolean - An expression or a variable that evaluates to a Boolean value.
Returns
Boolean - The Boolean result of the logical operation.