Assignment Operator Reference
Assignment operators operate on a destination and an expression. The destination is on the left side of the assignment operator and the expression is on the right side. The assignment operator sets the destination equal to some arithmetic combination of the destination and the expression. All assignment operators work on scalar numbers as well as waves. Only the = and += assignment operators work on strings.
=
= sets the destination equal to the expression.
+=
+= sets the destination equal to the sum of the destination and the expression.
-=
-= sets the destination equal to the difference of the destination and the expression.
*=
*= sets the destination equal to the product of the destination and the expression.
/=
/= sets the destination equal to the quotient of the destination and the expression.
See Also
Operators, Assignment Operators, Waveform Arithmetic and Assignment