paxBasic Assignment Operators

Language Element Short Description
Addition Assignment Operator (+=) Adds the value of an expression to the value of a variable and assigns the result to the variable.
Concatenation Assignment Operator (&=) Performs a string concatenation on the value of a variable and the value of an expression and assigns the result to the variable.
Division Assignment Operator (/=) Performs a division on the value of a variable and the value of an expression and assigns the result to the variable.
Integer Division Assignment Operator (\=) Performs a integer division on the value of a variable and the value of an expression and assigns the result to the variable.
Multiplication Assignment Operator (*=) Performs a multiplication on the value of a variable and the value of an expression and assigns the result to the variable.
Power Assignment Operator (^=) Raises a number to the power of an exponent and assigns the result to the variable.
Subtraction Assignment Operator (-=) Performs a subraction on the value of a variable and the value of an expression and assigns the result to the variable.

Addition Assignment Operator (+=)

Adds the value of an expression to the value of a variable and assigns the result to the variable.
result += expression

Arguments

result
Any variable
expression
Any expression
Using this operator is exactly the same as specifying: result = result + expression

Concatenation Assignment Operator (&=)

Performs a string concatenation on the value of a variable and the value of an expression and assigns the result to the variable.
result &= expression

Arguments

result
Any variable
expression
Any expression
Using this operator is exactly the same as specifying: result = result + expression

Division Assignment Operator (/=)

Performs a division on the value of a variable and the value of an expression and assigns the result to the variable.
result /= expression

Arguments

result
Any variable
expression
Any expression
Using this operator is exactly the same as specifying: result = result / expression

Integer Division Assignment Operator (\=)

Performs a integer division on the value of a variable and the value of an expression and assigns the result to the variable.
result \= expression

Arguments

result
Any variable
expression
Any expression
Using this operator is exactly the same as specifying: result = result \ expression

Multiplication Assignment Operator (*=)

Performs a multiplication on the value of a variable and the value of an expression and assigns the result to the variable.
result *= expression

Arguments

result
Any variable
expression
Any expression
Using this operator is exactly the same as specifying: result = result * expression

Power Assignment Operator (^=)

Raises a number to the power of an exponent and assigns the result to the variable.
result ^= expression

Arguments

result
Any variable
expression
Any expression
Using this operator is exactly the same as specifying: result = result ^ expression

Subtraction Assignment Operator (-=)

Performs a subraction on the value of a variable and the value of an expression and assigns the result to the variable.
result -= expression

Arguments

result
Any variable
expression
Any expression
Using this operator is exactly the same as specifying: result = result - expression


Copyright © 1999-2006 VIRT Laboratory. All rights reserved.