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...
uni
Altocumulus
Nov 14, 2012Try something like this (untested):
set lookupname [class lookup [IP::client_addr] sample_list]
if { $lookupname eq "" } {
ip address not in list
} else {
if { $lookupname eq $username } {
Do something
} else {
wrong ip for this user
}
}
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