Forum Discussion
Alex_McShane_23
Nimbostratus
Apr 19, 2017TCL Switch command - test multiple variables
Hi -
I don't think that the following is possible within the TCL language but I would love to be proven wrong
Can the Switch statement be coded to test multiple variables simultaneously?...
Stanislas_Piro2
Cumulonimbus
Apr 19, 2017Hi,
you can concatenate both variables like
switch ${a}|${b} {
"string-A1|string-B1" {
DO ACTION 1
}
"string-A2|string-B2" {
DO ACTION 2
}
}
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