Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?





Assign a value to a mutable variable. The variable must be defined using the mvar statement.



Name of the mutable variable.


Value to assign to the mutable variable.

SLAX Example

The following example creates the mutable variable, block. The set statement assigns an initial value to the block variable. In the for loop, the code iterates over each item in the specified list and appends an <item> element with two child elements, <name> and <size>, to the node set stored in the block variable.

Release Information

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