Forum Discussion

Yozzer's avatar
Yozzer
Icon for Nimbostratus rankNimbostratus
Nov 15, 2012

Data 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_jones” and i want to test if both are correct (fred is logging in from that IP address) before i allow fred access to a site.

 

I want the IF to trigger if the name/value pair is found and not report if individual names and values are matched. Something like this:

 

If {([class match -name [IP::client_addr] equals sample_list] && [class match -value “fred_jones” equals sample_list])} {

 

Do something

 

}

 

 

Thanks

 

 

 

11 Replies