Assignment operators

An assignment operator allows you to assign a variable with an expression.

Table 1. Assignment operators
Operator Description
Assignment (:=) The := operator assigns a variable with an expression and returns the result.
Addition Assignment (+=) [LET] The += operator used after the LET keyword, assigns a variable by adding the current variable value to a numeric expression.
Subtraction Assignment (-=) [LET] The -= operator used after the LET keyword, assigns a variable by subtracting the current variable value to a numeric expression.
Multiplication Assignment (*=) [LET] The *= operator used after the LET keyword, assigns a variable by multiplying the current variable value to a numeric expression.
Division Assignment (/=) [LET] The /= operator used after the LET keyword, assigns a variable by dividing the current variable value by a numeric expression.
Concatenation Assignment (||=) [LET] The ||= operator used after the LET keyword, assigns a variable by concatenating the current variable value to an expression.
Append Assignment (,=) [LET] The ,= operator used after the LET keyword, assigns a variable by concatenating the current variable value with the formatted version of an expression.