Forum Discussion
Gary_Hermelin_1
Nimbostratus
Oct 26, 2013Specify 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 } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects