ClojureDocs

Nav

Namespaces

Clojure/Conj 2026 — Charlotte, NC — Sept 30 - Oct 2 Learn More & Get Tickets →

if-let

clojure.core

Available since 1.0 (source)
  • (if-let bindings then)
  • (if-let bindings then else & oldform)
bindings => binding-form test
 If test is true, evaluates then with binding-form bound to the value of 
test, if not, yields else