Text Operators
SenseTalk includes several operators that you can use specifically for working with text values.
&
(Ampersand) Operator
Behavior: Creates a text string by combining values one after another. Both operands are converted to text representations if they are not already text before concatenation.
Syntax:
operand1 & operand2
Example:
put "The answer is:" & answer
&&
(Double Ampersand) Operator
Behavior: Joins (concatenates) two values with a space between them. Both operands are converted to text representations if they are not already text before concatenation.
Syntax:
operand1 && operand2
Example:
put "Dear" && correspondent & "," into openingLine