|
Usage-- Lingo syntax
expression1 && expression2
// JavaScript syntax
expression1 + expression2
DescriptionString 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.
ExampleThis
statement concatenates the strings “abra” and “cadabra” and inserts
a space between the two:
-- Lingo syntax
put("abra" && "cadabra")
// JavaScript syntax
put("abra " + "cadabra");
The result is the string
“abra cadabra”.
This statement concatenates the strings “Today
is” and today’s date in the long format and inserts a space between
the two:
-- Lingo syntax
put("Today is" && date())
// JavaScript syntax
put("Today is " + Date());
|
|
|