Forum Discussion
Aug 13, 2013
You can do it, but it's kind of awkward. The issue is the surrounding "{" and "}" around the comparison strings that's causing the strings to be treated as literals. If you remove the enclosing curly braces and end each line with a continuation character, it will work. Something like this
switch -- [HTTP::uri] \
"$matchpage1" {
...
} \
"$matchpage2" {
...
}
Check out the wiki switch topic for an example (at the bottom)
https://devcentral.f5.com/wiki/iRules.switch.ashx
Hope this helps...
-Joe