var = 1 switch (var): case 1: break; // Code that is executed if var is 1 case 2: break; // Code that is executed if var is 2 default: break; // Code that is executed if no cases match