SyntaxFix
Write A Post
Hire A Developer
Questions
Case-statements automatically fall through if you don't specify otherwise (by writing break). Therefor you can write
switch(myvar) { case 2: case 5: { //your code break; }
// etc... }