Forum Discussion

kykong_107132's avatar
kykong_107132
Icon for Nimbostratus rankNimbostratus
Jul 16, 2005

IF NOT function

Hi All,

 

 

Wondering is there any IF NOT function in 4.5.x irules? example,

 

 

if not http_uri ends_with "/"

 

used pool pool1

 

else

 

discard

 

 

 

Thank
  • In v4.x, we support the following logical operators (from the 4.6.2 Reference Guide):

     

     

    Logical operators

     

     

    Logical operators modify an expression or connect two expressions together to form a logical expression. Arguments to logical operators must return a value of true. Table 5.7 lists the logical operators and their meanings.

     

     

    The logical operators

     

     

    Logical Operators --> Meanings

     

     

    not --> Is the value returned by the expression not true?

     

     

    and --> Are the values returned by both expressions true?

     

     

    or --> Is the value returned by either expression true?

     

     

    So the answer is: yes!

     

     

    -Joe