Forum Discussion
Robert_47833
Jun 21, 2012Altostratus
how to write no or ! in switch
it was :
!({$var starts_with "/here"})
now I am trying to change it to switch
how to represent no or ! in switch?
- hoolioCirrostratusHi Robbie,
switch -glob $var { "/here*" { Matched here } "/there*" { Matched there } default { Didn't match here or there } }
- Robert_47833Altostratusthanks,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