clojure.core/if¶
Evaluates test.
Examples¶
Note by kimtg¶
user=> (doc if)
-------------------------
if
(if test then else?)
Special Form
Evaluates test. If not the singular values nil or false,
evaluates and yields then, otherwise, evaluates and yields else. If
else is not supplied it defaults to nil.
Please see http://clojure.org/special_forms#if
See also¶
- clojure.core/cond (5)
- clojure.core/when (3)
- clojure.core/if-let (7)
- clojure.core/if-not (2)
- clojure.core/when-let (6)
Content from the matching ClojureDocs page, with authors credited on each contribution.