Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Conversion or Casting 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. Note that the string expression in the function clickme_Click () for (var i = 0; i < 5; i++) |
Siebel eScript Language Reference |