cl-typecase

cl-typecase is an autoloaded Lisp macro in `cl-macs.el'.

(cl-typecase EXPR (TYPE BODY...)...)

Evals EXPR, chooses among clauses on that value.
Each clause looks like (TYPE BODY...). EXPR is evaluated and, if it
satisfies TYPE, the corresponding BODY is evaluated. If no clause succeeds,
cl-typecase returns nil. A TYPE of t or `otherwise' is allowed only in the
final clause, and matches if no other keys match.