1
Answer

how 2 do switch with multiple case?

clive908

clive908

20y
1.6k
1
I have a complex switch statement to build. In Delphi or VB I was able to do something like this: switch (cValidChar) { case 32 - 127, 176, 196, 198, 197, 214, 216, 181, 228, 230, 229, 246, 248: return true default: return false } How do I do this without a tower of case labels?
Answers (1)