switch(myNum) { case 1: //some code break; case 2: //some code break; case 3: case 4: //some code break; }