Symbols > %= (modulo assignment) |
![]() ![]() ![]() |
%= (modulo assignment)
Availability
Flash Player 4.
Usage
expression1
%=
expression2
Parameters
None.
Returns
Nothing.
Description
Operator (arithmetic compound assignment); assigns expression1
the value of expression1
%
expression2
. For example, the following two expressions are the same:
x %= y
x = x % y
Example
The following example assigns the value 4
to the variable x
.
x = 14;
y = 5;
trace(x %= y);
// returns 4
See also
![]() ![]() ![]() |