Forum Discussion
Michael_Hunzike
Nimbostratus
Mar 11, 2005Problem with elseif
Okay, this is driving me nuts...I'm trying to get a simple nested if statement working and it's not....
This works:
when HTTP_REQUEST
{
if {[HTTP::host] eq...
Michael_Hunzike
Nimbostratus
Mar 11, 2005Posted By rapmaster_c on 3/11/2005 9:54:00 AM
One quick question about your cutting and pasting my rule into the UI: are you making sure you omit the "rule rastak" line and closing brace? I pasted this from my bigip.conf. Putting rules into the UI requires that you omit the rule declarators.
Yup, I omitted that. I just tried to reformat my real rule to use the more traditional (and hard for me to read) style and without the last elseif it works fine. If I add the elseif on behind the second to the last } it still fails. I'll retry cutting and pasting your rule again to see if I missed something.
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
