Chapter 3 Configuring Advanced Expressions: Getting Started 51

Arithmetic Operations for Compound Advanced Expressions

Operator

Description

 

 

num <= num

Determine if the value of the expression on the left of the operator is

 

less than or equal to the value of the expression on the right

 

 

Operations on numbers of data type “integer”

 

 

number.ADD

Returns a number after adding the integer argument to the number

(integer)

value.

 

Following is an example:

 

http.req.content_length.add(10)

number.SUB

Returns a number after subtracting the integer argument from the

(integer)

number value.

 

Following is an example:

 

http.req.header.length.sub(10)

number.DIV

Returns a number after dividing the number value by the integer

(integer)

argument.

 

Following is an example:

 

http.req.content_length.div(2)

number.MUL

Returns a number after multiplying the number by the integer

(integer)

argument value.

 

Following is an example:

 

http.req.content_length.mul(2)

number.

Returns a Boolean TRUE if the number value is greater than or

BETWEEN

equal to the lower_integer argument and less than or equal to the

(lower_integer,

higher_integer argument.

higher_integer)

Following is an example:

 

 

http.req.content_length.between(5, 500)

number.EQ

Return a Boolean TRUE if the number value is equal to the integer

(integer)

argument.

 

Following is an example:

 

http.req.content_length.eq(50)

number.NE

Returns a Boolean TRUE if the value designated by number is not

(integer)

equal to the argument.

 

Following is an example:

 

http.req.content_length.ne(50)

number.GE

Return a Boolean TRUE if the number value is greater than or equal

(integer)

to the integer argument.

 

Following is an example:

 

http.req.content_length.ge(500)

Page 65
Image 65
Citrix Systems 9.2 Number .ADD, Integer Value Following is an example, Number .SUB, Number .EQ, Number .NE, Number .GE