Siebel eScript Language Reference > Siebel eScript Language Overview > Operators in Siebel eScript >

Typeof Operator in Siebel eScript


The typeof operator provides a way to determine and to test the data type of a variable and may use either of the following notations (with or without parentheses):

var result = typeof variable
var result = typeof(variable)

After either line, the variable result is set to a string that represents the variable's type: "undefined", "boolean", "string", "object", "number", "function", or "buffer".

Siebel eScript Language Reference