Which

WMA link


Which[$cond_1$, $expr_1$, $cond_2$, $expr_2$, ...]

yields $expr_1$ if $cond_1$ evaluates to True, $expr_2$ if $cond_2$ evaluates to True, etc.

If no test yields True, Which returns Null:

If a test does not evaluate to True or False, evaluation stops
and a Which expression containing the remaining cases is
returned:

Which must be called with an even number of arguments:

Throw
While