macro | since v0.0-927 | imported clojure.core/if-not | Edit |
(if-not test then)
(if-not test then else)
If test
is false or nil, evaluates and returns then
. Otherwise, evaluates
and returns else
. else
defaults to nil if not provided.
Evaluates test. If logical false, evaluates and returns then expr, otherwise else expr, if supplied, else nil.
(defmacro if-not
{:added "1.0"}
([test then] `(if-not ~test ~then nil))
([test then else]
`(if (not ~test) ~then ~else)))