Is there a way to assign two different case values to the same block of code without copy and pasting? For example, below 68 and 40 should execute the same code, while 30 is
Just put them right after each other without a break
switch (myVar) { case 68: case 40: // Do stuff break; case 30: // Do stuff break; }