Equinox Online Help - Language Reference - A to Z

Home

Expression

Applies to
Syntaxstring Expression(MacroTextExpression)
Action[statement] Compiles and executes the text held in the string 'MacroTextExpression' and returns the result as a string.
ScopeUsable anywhere
Notes

This method language is very similar to ExecuteMacro except that it is a statement not a function. If an error occurs the result is a zero length string.

CategoryFlow Control
See Also  
Example

This example prints to screen the calculation of the users input.

number Age
string Calc, Result

Calc = Input($Enter a calculation based on Age, eg "Age + 1"$)
Result = Expression(Calc)
If Result = " then print "An error occurred" else print "The result was", Result