Addition operator

Adds two numbers or concatenates two string expressions. Uses the plus sign (+) operator.

If one expression is empty, the other expression is returned unchanged.

result = expression1 + expression2

Item Description
result Any numeric variable
expression1 Any expression
expression2 Any expression

When you use the + operator, you may not be able to determine whether addition or string concatenation will occur. The expression determines the behavior of the + operator:

If expression is: Result
Both are numeric Add
Both are strings Concatenate
One is numeric and one is a string Concatenate