NET/MASTER Network Control Language (NCL) Reference Manual

Concatenation Operator and Expressions
Expressions and Operators
10–18 106126 Tandem Computers Incorporated
Some examples are listed in the following table:
What You Type Result of Concatenation Processing
a b a b
a b c a b c
a || b ab
a || b ab
1234 567 1234 567
1234 || 567 1234567
1234 || 567 1234567
12344+1 || 567 12345567
12344+1 567 12345 567
Note the preceding final two examples. The plus sign (+) in each case means that the
compiler treats the two terms 12344 and 1 as numbers, the result of addition being
12345. The compiler then performs concatenation.
Blanks within a quoted string are not regarded as a blank operator. Thus the result of
concatenating the following string is a b because the blanks within the quotes are
significant:
"a "||" b"
Blanks are not regarded as a blank operator between the following:
A term and another operator
Two operators
A term and a keyword
An operator and a keyword
Terms are defined at the beginning of this section under “The Composition of
Expressions.” For example, the blanks are not regarded as an operator in the
following expression. The blanks in this context act as lexical element delimiters.
&a + &b - &c
Blanks at the start and end of an expression are not regarded as an operator. For
example, the blanks are not regarded as an operator in the following expression. Once
again, the blanks in this context act as lexical element delimiters.
IF &a = &b THEN …