+

Syntax expression1 + expression2

Action The arithmetic addition operator yields the sum of the values of expression1 and expression2.

Examples 1 + 1

   » 2

UserTalk can add one and one with great facility!

"one" + "one"

   » oneone

The addition operator can be used to concatenate strings.

3 + "k bytes needed."

   » 3k bytes needed.

Notes UserTalk employs automatic type coercion when evaluating arithmetic and comparative operations; the two expressions need not be of the same type to be added together. Generally, the resulting type - which determines the method of addition - is the more

complex type, the one that can most readily represent both values.

See Also -

*

/

%

Discuss