Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Conversion Methods > eval() MethodThis method returns the value of its parameter, which is an expression. SyntaxReturnsUsageThis method evaluates whatever is represented by expression. If expression is a string, the interpreter tries to interpret the string as if it were JavaScript code. If successful, the method returns the value of expression. If not successful, it returns the special value If the expression is not a string, expression is returned. For example, calling eval(5) returns the value 5. ExampleThis example shows the result of using the eval() method on several types of expressions. The string expression in the test[0] variable is evaluated because it can be interpreted as a JavaScript statement, but the string expressions in test[1] and test[3] are undefined. function clickme_Click () for (var i = 0; i < 5; i++) |
Siebel eScript Language Reference |