Expression.Evaluate

About

Evaluates a Text expression and returns the evaluated value.

Syntax

Expression.Evaluate(expression as text, optional environment as [...]) as any  

Arguments

Argument Description
expression The expression to evaluate.
optional environment The expression environment.

Examples

Expression.Evaluate("1 + 1")

equals 2

Expression.Evaluate("1 +") 

equals Error

Expression.Evaluate(  
"section Section1; shared X = 1;"  
)

equals Error, only expressions are supported