& Operator


<expression1> & <expression2> <expression1> && <expression2>


The ampersand (&) operator is a text concatenation symbol; it joins the expressions to its left and right to form a single expression. When the ampersand is used singly, the expressions are concatenated without any intervening characters. When a double ampersand (&&) is used, the expressions are joined with a single intervening space.



The following examples show the results obtained by different uses of the ampersand operator:
"Good" & "Morning" Result: GoodMorning
"Good" && "Morning" Result: Good Morning
"January" && 3+4 Result: January 7
The visible property is true.
3 & 4*2 Result: 38
(3 & 4)*2 Result: 68
(3 && 4)*2
error-number expected

This text has been mechanically extracted from the Oracle Media Objects MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.