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. |
Adds the value of an expression to the value of a variable and assigns the result to the variable.result += expressionArguments
resultAny variableexpressionUsing this operator is exactly the same as specifying: result = result + expressionAny expression
Performs a string concatenation on the value of a variable and the value of an expression and assigns the result to the variable.result &= expressionArguments
resultAny variableexpressionUsing this operator is exactly the same as specifying: result = result + expressionAny expression
Performs a division on the value of a variable and the value of an expression and assigns the result to the variable.result /= expressionArguments
resultAny variableexpressionUsing this operator is exactly the same as specifying: result = result / expressionAny expression
Performs a integer division on the value of a variable and the value of an expression and assigns the result to the variable.result \= expressionArguments
resultAny variableexpressionUsing this operator is exactly the same as specifying: result = result \ expressionAny expression
Performs a multiplication on the value of a variable and the value of an expression and assigns the result to the variable.result *= expressionArguments
resultAny variableexpressionUsing this operator is exactly the same as specifying: result = result * expressionAny expression
Raises a number to the power of an exponent and assigns the result to the variable.result ^= expressionArguments
resultAny variableexpressionUsing this operator is exactly the same as specifying: result = result ^ expressionAny expression
Performs a subraction on the value of a variable and the value of an expression and assigns the result to the variable.result -= expressionArguments
resultAny variableexpressionUsing this operator is exactly the same as specifying: result = result - expressionAny expression