Forum Discussion
Robert_47833
Altostratus
Jul 21, 2011closing brackets before "else"
Hi,dear Irule
if {[class match $uri starts_with gen3abURLs_SRWD29]} {
if { rand() <0.2 } {
pool cjj-BRX set cjjA_cookie 1
return
}
else {
pool cjj-BROWSE ...
Jul 23, 2011
If you don't care to much about readability.. you could leave it out...
"The then and else arguments are optional "noise words" to make the command easier to read."
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/124/iRules-101--02--If-and-Expressions.aspx
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