Declaring and Using Variables

A variable is an object that stores and represents information in a script. Siebel eScript can modify the value of a variable but it cannot modify the value of a literal. For example, to display a name literally, you must use the following code multiple times:

TheApplication().RaiseErrorText("Aloysius Gloucestershire Merkowitzky");

To simplify this code, the following code uses a variable:

var Name = "Aloysius Gloucestershire Merkowitzy";
TheApplication().RaiseErrorText(Name);

The value of the Name variable changes, which allows you to use shorter lines of code and to reuse the same lines of code.