switch(classid) { case 1: { // class settings for a classid 1 returns to default if it's not 1 } default: { // class settings if it's not the case listed below } }