Evaluates a boolean expression against a context object
The boolean expression to evaluate
The context object containing variables
OptionalenableDiagnostics: boolean = falseWhether to include diagnostic information
The evaluation result
Evaluates multiple expressions and returns all results
Array of expressions to evaluate
The context object
Map of results by name or index
Safe expression evaluator that prevents arbitrary code execution while supporting common boolean expressions and property access patterns.
Supported operations:
SafeExpressionEvaluator
Example