Syntax: eval()

The eval function will evaluate a string or expression and return the result of the code. This function can be used without referencing an object.

eval determines if the argument contains any OpusScript functions. If there are OpusScript functions present, they will be executed and eval will return the value of the last statement (if there is a value). If the argument is a simple expression, it will be evaluated and the value returned.

Syntax:

eval( string )

Remarks:

eval – is the name of the function.

string - is any string that represents an OpusScript expression, statement or sequence of statements. The expression can contain variables and properties of existing objects. This parameter is required.

image\Script_Button.jpgExamples