Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Automation Scripting User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

evaluate() Function (SLAX)

date_range 13-Jan-21

Namespaces

content_copy zoom_out_map
http://xml.libslax.org/slax

SLAX Syntax

content_copy zoom_out_map
object slax:evaluate(expression);

Description

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.

Parameters

expression

SLAX expression to evaluate.

Return Value

object

Result of the expression.

Usage Examples

content_copy zoom_out_map
var $result = slax:evaluate("expr[name == '&']");

Release Information

Function introduced in version 1.1 of the SLAX language, which is supported in Junos OS Release 12.2 and later releases.

footer-navigation