-=
Subtraction assignment operator.
Syntax
var_name -= sca_expr
Operands
- var_name
- A scalar variable.
- sca_expr
- A valid scalar expression.
Example
Expression | Result |
---|---|
a -= a , where a = 2 |
0 |
a -= 3 , where a = 2 |
-1 |
Comments
The subtraction assignment operator decreases the value of var_name by sca_expr. This operator is typically used in loop constructs.
The subtraction assignment operator is not valid when used with curve-editing functions.