Forum Discussion
Kevin_Stewart
Jul 04, 2014Employee
Two things:
-
You're doing a [string tolower ] evaluation but the match URIs aren't lowercase. Not sure how the /AppOffline condition is working.
-
I would probably consider using wildcard matches for these URIs. (Ex. "/webforum*").
As for a default condition, simply use a "default" condition at the bottom of the switch.
switch x {
"B" { do something }
"C" { do something }
default { do something }
}