Citrix Systems Network Router 9.2 Manual Do Utilizador
48
Citrix NetScaler Policy Configuration and Reference Guide
Compound Operations for Numbers
You can configure compound numeric expressions. For example, the following
expression returns a numeric value that is the sum of an HTTP header length and
a URL length:
expression returns a numeric value that is the sum of an HTTP header length and
a URL length:
http.req.header.length + http.req.url.length
The following table describes operators that you can use to configure compound
expressions for numeric data.
expressions for numeric data.
bool &&
bool
bool
This operator is a logical AND. When evaluating the components of the
compound expression, all components that are joined by the AND must
evaluate to TRUE. Following is an example:
compound expression, all components that are joined by the AND must
evaluate to TRUE. Following is an example:
http.req.method.eq(GET) &&
http.req.url.query.contains("viewReport &&
my_pagelabel")
bool || bool
This operator is a logical OR. When evaluating the components of the
compound expression, if any component of the expression that is joined by
the OR evaluates to TRUE, the entire expression is TRUE. Following is an
example:
compound expression, if any component of the expression that is joined by
the OR evaluates to TRUE, the entire expression is TRUE. Following is an
example:
http.req.url.contains(".js") ||
http.res.header.("Content-
Type").contains("javascript")
!bool
Performs a logical NOT on the expression.
Arithmetic Operations for Compound Advanced Expressions
Operator
Description
Arithmetic operations on number
num + num
Add the value of the expression on the left of the operator to the
value of the expression on the right. Following is an example:
value of the expression on the right. Following is an example:
http.req.content_length + http.req.url.length
num – num
Subtract the value of the expression on the right of the operator from
the value of the expression on the left.
the value of the expression on the left.
num * num
Multiply the value of the expression on the left of the operator with
the value of the expression on the right. Following is an example:
the value of the expression on the right. Following is an example:
client.interface.rxthroughput * 9
num / num
Divide the value of the expression on the left of the operator by the
value of the expression on the right.
value of the expression on the right.
String-Based Operations for Compound Advanced Expressions
All string operations