|
Evaluate
int Evaluate ( string expression )
Return
Value
OK if successful;
otherwise FAIL.
Parameters
expression –expression to
evaluate.
Remarks
Executes/evaluates
specified expression.
Example
The following
example demonstrates the use of Evaluate .
string
sExpression = "int a = 10" +
CR
sExpression += "int b = 20" + CR
sExpression += "int c = a + b" + CR
sExpression += "Println (c)"
Evaluate(sExpression)
Script output:
30
|