basic.+=

Assignment Operator/BASIC Program, Releases: AP 5.2.5

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

Command Name Type Description
basic.- Operator Mathematical operator (subtract). Also unary minus.
basic.num.expression Definition An expression which evaluates to a number.
basic.precision Statement Defines precision for calculations.
basic.sum Function Returns the sum of a list of numbers
basic./= Assignment Operator Divides numeric expression and assigns to variable.
basic.operators Relational Operator Operators * ! & = # - + / ^ < > \ [ ] ( )
basic.arithmetic.expressions Definition Arithmetic expressions.
basic.precedence Definition Precedence of compound expressions.
basic.assignment Definition Assigns value to variable.
arithmetic.operators Definition add, subtract, multiply, and divide numeric operands in arithmetic expressions.
basic.*= Assignment Operator Multiplies numeric expression and assigns to variable.
basic.-= Assignment Operator Subtracts numeric expression and assigns to variable.
basic.:= Assignment Operator Concatenates expression and assigns to variable.
basic.*.multiply Operator Arithmetic multiply operator

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.