PickBASIC / FlashBASIC
+= assignment operator
.mdThe += assignment operator adds a given numeric expression and assigns it to the given variable.
Syntax
variable += num.expExample(s)
Adds 1 to the
variable, x.
x += 1
The statement below:
total += taxis equivalent of the statement:
total = total + tax
See also
* arithmetic operator→*= assignment operator→- arithmetic operator→-= assignment operator→/= assignment operator→:= assignment operator→Arithmetic expressions→Arithmetic operators→Assignment→Numeric expressions→Precedence→precision statement→Relational operators→sum() function→\= assignment operator→