Hi,
I asked elsewhere about how to do the same actions for different cases in switch case and Arrch told me how to do it. I think an example like this would be good... ie, adding the arrowed parts below to the existing example.
switch (var) {
case 1:
//do something when var equals 1
break;
case 2:
case 5: <================================================
//do something when var equals 2 OR 5 <======================
break;
default:
// if nothing else matches, do the default
// default is optional
}