Forum Discussion
Yozzer
Nimbostratus
Nov 14, 2012Data group list checks in v11
Hi
Is it possible to check both the address and value of a data group list in combination within an if statement?
For example i have a data group list containing “192.168.1.1” := “fred_jone...
hoolio
Cirrostratus
Nov 20, 2012You can add the two values for the same IP to one entry:
"192.168.1.1" := "fred_jones|Paul_jones"
When you do the lookup, you can split the value on the delimiter and check each sub-value:
http://www.tcl.tk/man/tcl8.4/TclCmd/split.htm
foreach name [split $value "|"] {
if {$name eq $user_name}{
...
}
}
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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