Siebel eScript Language Reference > Siebel eScript Language Overview > Data Types in Siebel eScript >
Primitive Data Types in Siebel eScript
A primitive data type is the set of all possible values of a primitive value. A variable that is of a primitive data type is simply a value. Unlike an object data type, it can have no other properties or functions that are part of its definition.
The primitive data types are:
- chars. This primitive type is used for defining and manipulating strings. By convention, a chars value is a sequence of alphanumeric characters. However, it is technically any sequence of 16-bit unsigned integers.
- float. This primitive type is used for defining and manipulating floating point numbers.
NOTE: Integer is not an eScript data type. You can use a variable of type float. Some routines that expect integer arguments do an internal conversion of a float variable.
- bool. This primitive type is used for defining and manipulating Boolean objects. A bool value is either true or false.
- Undefined. If a variable is created or accessed with nothing assigned to it, it is of type undefined. An undefined variable merely occupies space until a value is assigned to it. When a variable is assigned a value, it is assigned a type according to the value assigned.
Following is code that will test whether a variable is undefined:
if (typeof test == "undefined")
TheApplication().RaiseErrorText("test is undefined");
NOTE: When the chars, float, or bool primitive data types are used to declare variables, they must be used as all lowercase.