&
Operator
makes 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 widen to a string, the expression converts them automatically.
If an expression cannot widen to a string, ViviFire gives an error.
A null reference (#Null
) becomes the empty string (""
).
Examples
greeting$ = "Hello," & " world!"
number$ = 4 & 2
greeting$ |
"Hello, world!" |
---|---|
number$ |
"42" |