& Operator

Creates a new string by concatenation.

Syntax

expression_1 & expression_2

Parts

expression_1
Necessary string expression or an expression that can be converted to a string
expression_2
Necessary string expression or an expression that can be converted to a string

Instructions

If either expression is not of type String, but can be converted to a string, that expression will be converted automatically. If either expression cannot be converted, ViviFire will generate a compile-time error. The #Null object reference is automatically converted to an empty string ("").

Examples

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

See also