+ 1
Switch statements
Is it possible to compare multiple values in an array against a switch statementâs different cases?
1 Answer
0
Yes:
while (index--) {
...
switch (array[index])
...
}
Is it possible to compare multiple values in an array against a switch statementâs different cases?