Addition Operator (+)

Addition Operator (+),And Operator,Assignment Operator (=),Concatenation Operator (&),Division Operator (/),Eqv Operator,Exponentiation Operator (^),Imp Operator,Integer Division Operator (\),Is Operator,Mod Operator,Multiplication Operator (*),Negation Operator (-),Not Operator,Operator Precedence,Or Operator,Subtraction Operator (-),Xor Operator Home home | Other Resources other resources | Advertise with us advertise | Link to us link to us | Contact us contact | Bookmark Us!
Google
 
Where can I find good Windows Web Hosting to host my VBScript Site?
You can find good Windows Hosting which support VBScript, ASP, ASP.Net,VisualStudio.Net and MSSQL at a very reasonable low monthly fee at EasyCGI.com and DiscountASP.Net

Addition Operator (+)

Sums two numbers.

result = expression1 + expression2

Arguments

result

Any numeric variable.

expression1

Any expression.

expression2

Any expression.

Remarks

Although you can also use the + operator to concatenate two character strings, you should use the & 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 subtype of the expressions determines the behavior of the + operator in the following way:

IfThen
Both expressions are numericAdd.
Both expressions are stringsConcatenate.
One expression is numeric and the other is a stringAdd.

If one or both expressions are Null expressions, result is Null. If both expressions are Empty, result is an Integer subtype. However, if only one expression is Empty, the other expression is returned unchanged as result.


VBScriptOnline.com - Addition Operator (+),And Operator,Assignment Operator (=),Concatenation Operator (&),Division Operator (/),Eqv Operator,Exponentiation Operator (^),Imp Operator,Integer Division Operator (\),Is Operator,Mod Operator,Multiplication Operator (*),Negation Operator (-),Not Operator,Operator Precedence,Or Operator,Subtraction Operator (-),Xor Operator