switch(x) { case 10: code break; case 42: code break; default: break; }