& Operator

Creates a new string by concatenation.

Syntax

expression_1 & expression_2

Parts

expression_1
An expression with a data type that can widen to String.
expression_2
An expression with a data type that can widen to String.

Result

The result is a new value of String.

Instructions

If expression_1 or expression_2 is not of type String, but can become a string, then the expression changes automatically. If an expression cannot become a string, then ViviFire gives an error. A null reference (#Null) becomes the string "NULL".

Examples

greeting$ = "Hello," & " world!"
After execution
VariableValue
greeting$"Hello, world!"

See also