Forum Discussion
derek_mccabe_10
Nimbostratus
Aug 25, 2006if - elseif statement not working
Hi All,
just wondering if you could help a noob out with a simple statement - code is below and i get the following errors:
line 9: [undefined procedure: elseif] [elseif { [HTTP::h...
derek_mccabe_10
Nimbostratus
Aug 25, 2006please ignore the post guys - didnt realize the positioning of the closing brackets before the elseif was essential - for other noobs that may have similar issues:
when HTTP_REQUEST {
set host [string tolower [HTTP::host]]
if { $host eq "www.abc.co.uk"} {
pool abc
} elseif { $host eq "www.def.co.uk"} {
pool def
} elseif { $host eq "www.ghi-online.com"} {
pool ghi
} else {
discard
}
}
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