Forum Discussion
Robert_47833
Dec 21, 2011Altostratus
how to use foreach
when HTTP_RESPONSE {
set cjj [HTTP::cookie names]
foreach cjjcookie $cjj {
if {$cjjcookie == "how to add 4 cookie name here"
}
{ Do nothing.
}
else {
...
There are actually several people that suggest using options terminators such as the -- in the class command. In particular when the next argument is a variable it can help ensure that nothing gets misinterpreted. I haven't made it a habit yet, but it certainly doesn't harm anything.
Colin
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