| << D.2.2- Arithmetic operators | AppendixD | D.2.4- Comparison operators >> |
Concatenation operators
Concatenation operators are usedfor concatenating expressions; they are listed in order of Operator Precedence.
| & | Name
Description
Syntax
Example
Note
| Ampersand
Concatenates two expressions.
Returns the concatenated expressions:
Result = expression1 & expression2
If expression1 is "WROX " and expression2 is " Press" then the result is "WROX Press".
The expressions are converted to a String subtype, if they |
| + | Name
Description
Syntax
Example
Note
| + Operator
Does the same as the & operator if both expressions are strings.
Returns the concatenated or summed expressions:
Result = expression1 + expression2
1 + "1" = 2 "1" + "1" = "11"
If one or both expressions are numeric, the + operator will work as an arithmetic + operator and sum the expressions. |
| << D.2.2- Arithmetic operators | AppendixD | D.2.4- Comparison operators >> |

RSS
