Overview of Conversion Methods
You might encounter a situation where you must specify or control the types of variables or data. Some conversion methods include one argument that is a variable or data item that Siebel eScript converts to the data type that you specify in the name of the method. For example, the following code creates two variables:
var aString = ToString(123);
var aNumber = ToNumber("123");
In this example, Siebel eScript does the following work:
To create the aString variable, it converts the number 123 to a string.
To create the aNumber variable, it converts the string value "123" to a number.
It already created the aString variable with a value of "123", so the second code line can use the following format:
var aNumber = ToNumber(aString);