Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Addition (+) - operator of language VBScript

Description:
Used to sum two numbers.
Syntax:
result = expression1 + expression2
Note:
Although you can also use the + operator to concatenate two character strings, you should use the Concatenation (&) operator for concatenation to eliminate ambiguity and provide self-documenting code. When you use the + operator, you may not be able to determine whether addition or string concatenation will occur. The underlying type of the expressions determines the behavior of the + operator in the following way:
- if both expressions are numeric, then addition.
- if both expressions are strings, then Concatenate.
- if one expression is numeric and the other is a string, then Add.
- if one or both expressions are Null, then result is Null.
- if both expressions are Empty, then result is an Integer type.
- if only one expression is Empty, then the other expression is returned unchanged as result.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice