switch( expression ) case label1 % code for label1 case label2 % code for label2 otherwise % none of the previous endswitch