Forum Discussion
Sayan_81841
Feb 24, 2011Nimbostratus
Switch statement not working
Hi, I wrote an iRule and the content is given below. But this is not working as expected. when HTTP_REQUEST { if { [HTTP::host] starts_with "abc.com" } { set var1 "/abc/x...
Feb 24, 2011
Yes, I came into that a while back when writing a tech tip. You can omit the curly braces and use a line continuation character to make the switch statement a single line. Otherwise, I haven't found any workaround to this.
-Joe
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