Forum Discussion
wlepkin_98758
Nimbostratus
Jan 14, 2012Compound conditional expression
Hi, I'm really struggling with what ought to be a pretty simple compound expression. I want to do something like this:
if { ( $a contains "aaa" ) and (( $b equals "123" ) or ( $b equals "45...
nitass
Employee
Jan 14, 2012what error did you get?
[root@ve1023:Active] config b rule myrule list
rule myrule {
when RULE_INIT {
set a "aaa"
set b "123"
if { ( $a contains "aaa" ) and (( $b equals "123" ) or ( $b equals "456" )) } then { log local0. "gotcha" }
}
}
[root@ve1023:Active] config tail /var/log/ltm
Jan 13 23:17:54 local/ve1023 err mcpd[25539]: 01020066:3: The requested rule (myrule) already exists in partition Common.
Jan 13 23:17:54 local/tmm info tmm[26866]: Rule myrule RULE_INIT: gotcha
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
