You can use the following API to evaluate an expression.
 

object evaluate(String expression)
object evaluate(String language, String expression)


The following code fragment shows how to evaluate expressions in ALH API.

result = ALH.evaluate("a+b");
ALH.setValue($context$, "display", result);


If no language is defined, the default language will be used (JavaScript Rhino).