Table 53: Operator Actions
(continued)
Action
Operator
Operation
Evaluates as true (returns a 1) if the element to the left
of the operator is equivalent to the expression to the right
of the operator; otherwise the result is false (0)
=
Equal to
Evaluates as true (returns a 1) if the element to the left
of the operator is not equal to the expression to the right
of the operator; otherwise the result is false (0)
!=
Not equal to (logical
NOT)
Evaluates as true (returns a 1) if the values of either the
left or right sides is nonzero; evaluation halts at the first
true (1) expression
||
Logical OR
Evaluates as true (returns a 1) if the values of the left and
right sides are both nonzero; evaluation halts at the first
false (0) expression
&&
Logical AND
See “Invoking Other Macros” on page 475 for usage.
[ ]
Miscellaneous
See “While Constructs” on page 473 for usage.
,
Miscellaneous
Groups operands and operators to achieve results
different from simple precedence; effectively has the
highest precedence
( )
Miscellaneous
Provides access to environment commands; see Table
51 on page 461. Provides access to macros; see “Invoking
Other Macros” on page 475
.
Miscellaneous
Separates operation statements within a control
expression
;
Miscellaneous
Encloses control expressions
<# #>
Miscellaneous
Multiplies the expression to the left of the operator by
the expression to the right
*
Multiplication
Divides the expression to the left of the operator by the
expression to the right
/
Division
Divides the expression to the left of the operator by the
expression to the right and returns the integer remainder.
If the expression to the left of the operator is less than
the expression to the right, then the result is the
expression to the left of the operator.
%
Modulo
Increments the variable after the expression is evaluated
++
Postincrement
Decrements the variable after the expression is evaluated
– –
Postdecrement
467
Copyright © 2010, Juniper Networks, Inc.
Chapter 8: Writing CLI Macros
Summary of Contents for JUNOSE 11.3
Page 6: ...Copyright 2010 Juniper Networks Inc vi...
Page 8: ...Copyright 2010 Juniper Networks Inc viii JunosE 11 3 x System Basics Configuration Guide...
Page 24: ...Copyright 2010 Juniper Networks Inc xxiv JunosE 11 3 x System Basics Configuration Guide...
Page 32: ...Copyright 2010 Juniper Networks Inc 2 JunosE 11 3 x System Basics Configuration Guide...
Page 146: ...Copyright 2010 Juniper Networks Inc 116 JunosE 11 3 x System Basics Configuration Guide...
Page 166: ...Copyright 2010 Juniper Networks Inc 136 JunosE 11 3 x System Basics Configuration Guide...
Page 432: ...Copyright 2010 Juniper Networks Inc 402 JunosE 11 3 x System Basics Configuration Guide...
Page 488: ...Copyright 2010 Juniper Networks Inc 458 JunosE 11 3 x System Basics Configuration Guide...
Page 524: ...Copyright 2010 Juniper Networks Inc 494 JunosE 11 3 x System Basics Configuration Guide...
Page 554: ...Copyright 2010 Juniper Networks Inc 524 JunosE 11 3 x System Basics Configuration Guide...
Page 566: ...Copyright 2010 Juniper Networks Inc 536 JunosE 11 3 x System Basics Configuration Guide...
Page 588: ...Copyright 2010 Juniper Networks Inc 558 JunosE 11 3 x System Basics Configuration Guide...
Page 613: ...PART 3 Index Index on page 585 583 Copyright 2010 Juniper Networks Inc...
Page 614: ...Copyright 2010 Juniper Networks Inc 584 JunosE 11 3 x System Basics Configuration Guide...
Page 632: ...Copyright 2010 Juniper Networks Inc 602 JunosE 11 3 x System Basics Configuration Guide...