switch (classid) { case 0..5: { do_something(); } case 6: { something_else(); } default: { something(); } }