switch(true) { case if(constant1 == 1): { //statements; break; } case if(constant2 == 2): { //statements; break; } default: { //statements; break; } }