Switch

Switch[exprpattern1value1pattern2value2, ...]
yields the first value for which $expr matches the corresponding pattern.