Previous Next Chapter

Concatenation Operators

ARexx defines two concatenation operators. The first, identified by the operator sequence | | (two vertical bars), joins two strings into a single string with no intervening blank. This type of concatenation can also be specified implicitly. When a symbol and a string are typed without any intervening spaces, ARexx behaves as if the | | operator had been specified. The second concatenation operation is identified by the blank operator and joins the two operand strings with one intervening blank.

The priority of all concatenation operations is 4. Table 3-2 summarizes the different operations.

Table 3-2. Concatenation Operators

Operator Operation Example Result

|| Concatenation `why me, `||'Mom?' why me, Mom?

Blank Blank Concatenation `good"times' good times

none Implied Concatenation one'two'three ONEtwoTHREE

Top Previous Next Chapter