User Guide

84 ActionScript Language and Syntax
Logical operators
The logical operators take two operands and return a Boolean result. The logical operators
differ in precedence and are listed in the following table in order of decreasing precedence:
Conditional operator
The conditional operator is a ternary operator, which means that it takes three operands. The
conditional operator is a shorthand method of applying the
if..else conditional statement.
Assignment operators
The assignment operators take two operands and assign a value to one operand based on the
value of the other operand. All the assignment operators, as listed in the following table, have
equal precedence:
Operator Operation performed
&&
Logical AND
||
Logical OR
Operator Operation performed
?:
Conditional
Operator Operation performed
=
Assignment
*=
Multiplication assignment
/=
Division assignment
%=
Modulo assignment
+=
Addition assignment
-=
Subtraction assignment
<<=
Bitwise left shift assignment
>>=
Bitwise right shift assignment
>>>=
Bitwise unsigned right shift assignment
&=
Bitwise AND assignment
^=
Bitwise XOR assignment
|=
Bitwise OR assignment