### Concatenate operator (x +y)

Basic and Crystal syntax.

Concatenate (x & y) and Concatenate (x + y) are synonymous if both operands x and y are Strings.

##### Usage

`x + y`

Concatenates (combines) string x to string y to make one contiguous string.

##### Examples

The following examples are applicable to both Basic and Crystal syntax:

`"Bread" + " and " + "butter"`

Returns "Bread and butter".

`"Your customer number is " + ({customer.CUSTOMER ID}) + " and your company contact person is " + ({customer.FIRST NAME}) + "."`

Returns "Your customer number is 64 and your company contact person is Bob." Where CustomerID="64" and First Name = "Bob".

##### Comments

- You can use this operator only if all the elements you are connecting are strings.
- If you want to include a value from a numeric field (for example, an account balance), you must first convert that value to a text string using the ToText function:

`"Your account balance is " + ToText({file.BALANCE}) + "."`

###### Related topics

Concatenate (x & y)

Formula 2

Formula 5

Formula 13

Formula 15

Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com