basic.+=
Adds numeric expression and assigns to variable.
Syntax
variable += num.expression
Description
an assignment operator which adds a given numeric expression and assigns it to the given variable.
Example
x += 1
Adds '1' to the variable, 'x'.
total += tax
Is equivalent of the statement:
total = total + tax
See Also
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
