Divides the value of a variable by the value of an expression, then assigns the remainder to the variable.
variable Mod= expression
- Required numeric variable.
- Required numeric expression
The following two statements are functionally equivalent.
variable Mod= expression variable = variable Mod expression
Because it is derived from the Mod operator, the sign of the variable becomes the same as the expression's.
x = 42 x Mod= 10 y = 24 y Mod= -10
' Change value of property #obj.value Mod= 2