if-not

macrosince v0.0-927imported clojure.core/if-notEdit
(if-not test then)
(if-not test then else)

Details:

If test is false or nil, evaluates and returns then. Otherwise, evaluates and returns else. else defaults to nil if not provided.


See Also:


Source docstring:
Evaluates test. If logical false, evaluates and returns then expr, 
otherwise else expr, if supplied, else nil.
Source code @ clojure:src/clj/clojure/core.clj
(defmacro if-not
  {:added "1.0"}
  ([test then] `(if-not ~test ~then nil))
  ([test then else]
   `(if (not ~test) ~then ~else)))