Product Documentation

Operators in Advanced Expressions

Jun 13, 2016

NetScaler provides support for a number of operators that can be used to form compound expressions.

Boolean Operators

Evaluates expressions based on one of the following operators:

Boolean operators

Evaluate the expressions based on one of the following operators:

 

&&

||

!

 

Boolean operators

Evaluate the expressions based on one of the following operators:

 

&&

||

!

 

Boolean operators

Evaluate the expressions based on one of the following operators:

 

&&

||

!

 
Operator Usage Description

&&

<expression1> && <expression2>

Logical AND operation. For the expression to evaluate to TRUE, all expressions that are joined by the && must evaluate to TRUE.

||

<expression1> || <expression2>

Logical OR operation. For the expression to evaluate to TRUE, any expression that is joined by the || must evaluate to TRUE.

!

! <expression1>

Logical NOT operation. For the expression to evaluate to TRUE, the expression must not evaluate to TRUE. 

Comparison Operators

These operators compare the expressions and return TRUE or FALSE.

Important

Comparison operators work only if the expressions evaluate to the same data type.

Operator Usage When used with numeric data When used with text

==

<expression1> == <expression2>

Evaluates to TRUE if the expressions evaluate to the same numeric value.

Evaluates to TRUE if the expressions evaluate to the same string.

!=

<expression1> != <expression2>

Evaluates to TRUE if the expressions do not evaluate to the same numeric value.

Evaluates to TRUE if the expressions do not evaluate to the same string.

>

<expression1> > <expression2>

Evaluates to TRUE if <expression1> evaluates to a value greater than <expression2>.

Evaluates whether the string on the left side of the operator follows the string on the right alphabetically.

>=

<expression1> >= <expression2>

Evaluates to TRUE if <expression1> evaluates to a value greater than or equal to <expression2>.

Evaluates whether the string on the left side of the operator is the same as the string on the right, or follows it alphabetically.

<

<expression1> < <expression2>

Evaluates to TRUE if <expression1> evaluates to a value lesser than <expression2>.

Evaluates whether the string on the left side of the operator precedes the string on the right alphabetically.

<=

<expression1> <= <expression2>

Evaluates to TRUE if <expression1> evaluates to a value lesser than or equal to <expression2>.

Evaluates whether the string on the left side of the operator is the same as the string on the right, or precedes it alphabetically.

Operators for Numeric Data

You can perform the following operations on numeric data.

Operators for Text Data