Operators; Table 52: Macro Operators; Table 53: Operator Actions - Juniper SYSTEM BASICS - CONFIGURATION GUIDE V 11.1.X Configuration Manual

System basics configuration guide software for e series broadband services routers
Table of Contents

Advertisement

JUNOSe 11.1.x System Basics Configuration Guide
" count"
" \t this string starts with a tab and ends with a tab \t"

Operators

You can use operators to perform specific actions on local variables or literals,
resulting in some string or numeric value. Table 52 on page 480 lists the available
macro operators in order of precedence by operation type. Operators within a given
row are equal in precedence.

Table 52: Macro Operators

Table 53 on page 480 briefly describes the action performed by each operator.

Table 53: Operator Actions

480
Writing Macros
Operation Type
Operators
Extraction
substr()
String
$
Multiplicative
*
Arithmetic
+
Relational
<
Logical
||
Assignment
:=
Miscellaneous
[ ]
Operation
Operator
Arithmetic (binary)
+
Arithmetic (binary)
Assignment
:=
Combine
$
Less than
<
rand()
round()
truncate()
/
%
++
– –
>
<=
>=
&&
!
,
( )
.
Action
Adds the right and left sides together
Subtracts the element to the right of the operator from
the element to the left of the operator
Evaluates the elements to the right of the operator, then
assigns that value to the local variable to the left of the
operator
Creates a new string by joining the values of the right
and left sides; converts any numeric values to strings
before joining
Evaluates as true (returns a 1) if the element to the left
of the operator is less than the expression to the right of
the operator; otherwise the result is false (0)
=
!=
;
<#
#>

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose 11.1

Table of Contents