Forum Discussion
ReynaldoQ_14206
Nimbostratus
Jun 17, 2014iRule coding
Hi...don't know much about coding in F5 just wanted to verify if this works as a negation (!) as in below.
elseif { [matchregion ldns !"BXB-IDMS-DNS"] } { if { [active_members pl_chi-mysql-read.gtm.intdata.com_3306] > 0 } {....
Thanks
4 Replies
- Cory_50405
Noctilucent
I believe you'll need to move the not outside of the braces:
elseif { not [matchregion ldns "BXB-IDMS-DNS"] } { if { [active_members pl_chi-mysql-read.gtm.intdata.com_3306] > 0 } {.... - ReynaldoQ_14206
Nimbostratus
Thanks Cory. Shall I use the "not" or "!" or either will work?
- Cory_50405
Noctilucent
Either one will work. Sometimes it's easier to understand upon glancing at it when you spell it out instead of using symbols. End result is the same though.
- ReynaldoQ_14206
Nimbostratus
thank you very much.
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