switch(expression) { case value1: statement(s) break; case value2: statement(s) break; /* you can give any number of cases */ default: statement(s) }