Skip to main content

Switch

Switch[expr,form1,value1,form2,value2,…] evaluates expr, then compares it with each of the formi in turn, evaluating and returning the valuei corresponding to the first match found. 

Please visit the official Wolfram Language Reference for more details and examples on core symbols.