Which

Which[cond1expr1cond2expr2, ...]
yields expr1 if cond1 evaluates to True, expr2 if cond2 evaluates to True, etc.

If no test yields True, Which returns Null:

Which must be called with an even number of arguments: