vbscript-concatenate

OPERATOR: &


Implemented in version 1.0

&

The & operator is the preferred operator for concatenating strings. However, the + operator may also be used for 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>