&=
Operator
Causes concatenation with the values of a variable and an expression, then changes the variable to the result.
Syntax
variable &= expression
Parts
variable
- A string variable or property.
expression
- A string expression or an expression that the compiler can convert to a string.
Instructions
The two statements that follow operate the same.
variable &= expression
variable = variable & expression
Examples
Example 1
x$ = "Hello"
x$ &= " world"
variable | value |
---|---|
x$ | "Hello world" |