ClojureDocs

Nav

Namespaces

or

clojure.core

Available since 1.0 (source)
  • (or)
  • (or x)
  • (or x & next)
Evaluates exprs one at a time, from left to right. If a form
returns a logical true value, or returns that value and doesn't
evaluate any of the other expressions, otherwise it returns the
value of the last expression. (or) returns nil.