Forum Discussion
Mike_S_59924
Nimbostratus
Apr 14, 2008comparison other than equals
Looks like irules only support equals and not equals. Is there any way to simulate greater than and less than.
The problem.
We have a web site w/ 240 virtual directories. We want...
hoolio
Cirrostratus
Apr 17, 2008Sorry, when first wrote the example, I was parsing the second character in the URI. I reread your initial post and saw that you wanted to parse the third character (second after the leading forward slash), so I updated the string range, but didn't update the comments. "Parse the second character in the path" should be third.
The idea is that the first character from the path will be the leading forward slash. This is index 0. So you can take the third character (index 2), set it to lower case for the pool selection, and then select the pool based on this character. And yes, the default is there to catch any requests where the path is less than three characters long.
For details on the switch command syntax, you can check the man page (Click here).
Aaron
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