&& (logical AND) 233
Example
The following example assigns the value 4 to the variable x.
x = 14;
y = 5;
trace(x %= y);
// returns 4
See also
% (modulo)
& (bitwise AND operator)
Availability
Flash Player 5. In Flash 4, the & operator was used for concatenating strings. In Flash 5 and later,
the
& operator is a bitwise AND, and you must use the add and + operators to concatenate strings.
Flash 4 files that use the
& operator are automatically updated to use add when brought into the
Flash 5 or later authoring environment.
Usage
expression1 & expression2
Parameters
None.
Returns
Nothing.
Description
Operator (bitwise); converts expression1 and expression2 to 32-bit unsigned integers, and
performs a Boolean AND operation on each bit of the integer parameters. The result is a new 32-
bit unsigned integer.
&& (logical AND)
Availability
Flash Player 4.
Usage
expression1 && expression2
Parameters
None.
Returns
A Boolean value.