Forum Discussion
Robert_47833
Nov 14, 2011Altostratus
how to use switch to match datagroup
1:there is a datagroup:cjj
how to use switch to match this group
switch -glob [HTTP::path] {
"cjj" xxxx ???
2:
switch -glob [HTTP::path] { "*jpg" - "*bmp" - ...
nitass
Nov 17, 2011Employee
so if I use [string tolower [HTTP::uri]] many times,then,I need to use variable
but if I use [HTTP::uri] many times,then,I don't need to use variables,right?yes, that is what i understand.
If you were running an operation against a command multiple times you'd want to run it just once and then save the output to a variable.i understand operation means something such as string tolower ...
hope this helps.
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