+=

Addition 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 4
a += 3 , where a = 2 5

Comments

The addition assignment operator increases the value of var_name by sca_expr. This operator is typically used in loop constructs.

The addition assignment operator is not valid when used with curve-editing functions.