So...does it always have to be presented in 1, 2, 3 format? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

So...does it always have to be presented in 1, 2, 3 format?

10th Aug 2017, 12:45 AM
Folau Holi
3 Answers
+ 4
a switch statement does not have to be in counting order if that's what you're asking
10th Aug 2017, 1:00 AM
Jordan Chapman
Jordan Chapman - avatar
+ 2
What?
10th Aug 2017, 12:55 AM
Yurodivi
+ 2
Sorry if I didn't elaborate enough, I meant to ask if the "case" statements must be placed in "case 1, case 2, case 3..." format.
10th Aug 2017, 4:50 AM
Folau Holi