另一种写法

控制流 / 条件语句 / if/else 语句

(defn get-latitude [] 42)

(def latitude (get-latitude))

;; 用普通的 if 写出的同一条链:
;; 一个 if 的 else 分支里放着下一个 if。
;; 它能工作,而这恰恰就是 cond 存在的原因:每多一个分支,嵌套就多一层
(def location
  (if (= latitude 0)
    "Equator"
    (if (= latitude 90)
      "north Pole"
      (if (= latitude -90)
        "south Pole"
        "not at the Equator or Pole"))))
;; location is "not at the Equator or Pole"

(println "latitude" latitude "is" location)