Siebel eScript Language Reference > Using Siebel eScript > Using Operators in Siebel eScript >

Concatenating Strings


Concatenating is the act of stringing two items together in consecutive order. You can write code that concatenates two or more strings in Siebel eScript.

To concatenate strings

  • Use the plus (+) operator between two strings.

Examples of Concatenating Strings

The following example uses the addition (+) operator between two strings:

var proverb = "A rolling stone " + "gathers no moss.";

This example sets the value of the proverb variable to the following text:

A rolling stone gathers no moss.

The following example concatenates a string and a number:

var newstring = 4 + "get it";

This example sets the value of the new string variable to the following text:

4get it

Siebel eScript Language Reference Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.