Name

if-match

Usage

macro

Syntax

(if-match pattern expr then-form [else-form])

Description

If expr matches pattern, returns the result of then-form, else returns the result of else-form or null.

See also

about:pattern-matching case-match ecase-match when-match