evaluate() Function (SLAX)
Function introduced in version 1.1 of the SLAX language, which is supported in Junos OS Release 12.2 and later releases.
Evaluate a SLAX expression and return the results of the expression. This supports expressions using the extended syntax provided by SLAX in addition to what is allowed in XPath.
expression—SLAX expression to evaluate.
object—Result of the expression.
var $result = slax:evaluate("expr[name == '&']");