text operators
Syntax
<firstOperand> & <secondOperand>
<firstOperand> && <secondOperand>
output "I am " & myAge & " years old."
put "Hello" && myName & "!" into greeting
put 1 & 2 into twelve
Explanation
The &
operator concatenates two values together. E.g. "pant" & "suit"
becomes
"pantsuit"
. The &&
operator inserts a space between the two values it concatenates,
e.g. "Hello" && "World"
becomes "Hello World"
.