1.3.0 permalink Arrow_down_16x16
  • (not x)
Returns true if x is logical false, false otherwise.

1 Example top

  • user=> (not true)
    false
    user=> (not false)
    true
    ;; acts as complement of `boolean`
    user=> (boolean "a string")
    true
    user=> (not "a string")
    false
    user=> (boolean 1)
    true
    user=> (not 1)
    false
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:480 top

(defn not
  "Returns true if x is logical false, false otherwise."
  {:tag Boolean
   :added "1.0"
   :static true}
  [x] (if x false true))
Vars in clojure.core/not:
Used in 0 other vars

Comments top

No comments for not. Log in to add a comment.