| macro | since v0.0-927 | imported | Edit |
(when test & body)Evaluates test. If logical true, evaluates body in an implicit do.
when is often used instead of if for conditions that do not have an "else".
Evaluates test. If logical true, evaluates body in an implicit do.
(defmacro when
{:added "1.0"}
[test & body]
(list 'if test (cons 'do body)))