Forum Discussion
Kai_Wilke
Jan 07, 2016MVP
Hi Mark,
Its unfortunately not possible when using a
[switch]
command. A substitution enabled [switch]
syntax like...
switch -glob -- [HTTP::uri] [set y "/test1*"] - [set y "/test2*"] {
} [set y "/test3*"] {
} default {
}
... would always store "/test3*", since it substitutes everything before the actual comparsion starts. The
[switch -glob/exact]
comparsion has absolutely no room for any kind of [identity functions]
to trace the exit... 😞
Cheers, Kai