For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Gary_Hermelin_1's avatar
Gary_Hermelin_1
Icon for Nimbostratus rankNimbostratus
Oct 26, 2013

Specify a Blank or Null value for a String Record in a Data Group

We want to be able to include a "blank" entry (a 'null') as a value in a String Record used in a Data Group. Is it possible to do so and, if yes, what is the syntax for entering the Value to be included in the String Record?

 

1 Reply

  • Just to be clear, are you talking about the string (key), or its corresponding value? The system won't let you use a null string, but you can definitely use a null value (though that changes with 11.4). If you do need a null string, I would recommend testing for that first, and then testing the data group. Example:

    when HTTP_REQUEST {    
        if { ( $foo equals "" ) or ( [class match $foo equals my_dg] ) } {
             do something
        } else { 
             do something else
        }
    }