Lingo Dictionary > Symbols > && (concatenator) |
![]() ![]() ![]() |
&& (concatenator)
Syntax
expression1
&&
expression2
Description
String operator; concatenates two expressions, inserting a space character between the original string expressions. If either expression1
or expression2
is a number, it is first converted to a string. The resulting expression is a string.
This is a string operator with a precedence level of 2.
Example
This statement concatenates the strings "abra" and "cadabra" and inserts a space between the two:
put "abra" && "cadabra"
The result is the string "abra cadabra".
Example
This statement concatenates the strings "Today is" and today's date in the long format and inserts a space between the two:
put "Today is" && the long date
If today's date is Tuesday, March 15, 1999, the result is the string "Today is Tuesday, March 15, 1999".
![]() ![]() ![]() |