Scripts.eval
Function/Meaning
Expression Evaluation
Type
Method of the
Scripts class
Syntax
eval(
expression
,
name
=
''
,
linesof
=
0
,
context
=
global
)
Arguments
expression
Specifies the expression to execute as a string.
name
Specifies the filename for error messages
linesof
Specifies the line number for error messages
context
Specifies the execution context.
Return Value
Returns the result of the evaluated expression.
Description
Executes the string specified by expression as a TJS2 expression.
Exceptions occurring during script execution are not caught within this method, so they can be caught by the caller of this method.
Reference
Scripts.execStorage
Scripts.exec