Symbols > %= (modulo assignment) |
%= (modulo assignment)
modulo assignment, %=, division, remainder
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 %= yx = 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