vbscript-plus

OPERATOR: +


Implemented in version 1.0

+

The + operator has two uses. It is used to add numbers together. It also may be used to concatenate (combine) strings together.

Note it is usually recommended that only the & operator be used for string concatenation.

Addition:

Code:
<% total = 5.678 + 0.234 + 23.1 %>

Output:
29.012

Concatenation:

Code:
<% cheese= » is made of blue cheese. » %>
<% sentence= »The moon » + cheese +  » Mice like blue cheese. » %>

Output:
The moon is made of blue cheese. Mice like blue cheese.

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Vous pouvez utiliser ces balises et attributs HTML : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>