In C++ / C#, one can fall through multiple cases to execute one function instead of calling that function after each case.
For example,
switch (value)
{
case 1:
case 3:
case 4:
DoExercise(value);
break;
case 2:
SkipLunch(value);
break;
case 5:
default:
GoHome();
break;
}
Do we have a similar way to fall through multiple cases?
As I understand I need to do
Switch[value, 1, DoExercise[value], 3, DoExercise[value],4, DoExercise[value],
2, SkipLunch[value],
5, GoHome[],
_, GoHome[]]
Can I do something like
Switch[value, (1 or 4 or 3), DoExercise[value], 2, SkipLunch[value], _, GoHome[]]