(defn get-latitude [] 90)
(def latitude (get-latitude))
;; if принимает ровно две ветви: then и else
(println (if (= latitude 0) "at the Equator" "not at the Equator"))
;; цепочка "else if" записывается через cond, а :else называет последнюю ветвь
(def location
(cond
(= latitude 0) "Equator"
(= latitude 90) "north Pole"
(= latitude -90) "south Pole"
:else "not at the Equator or Pole"))
;; location is "north Pole"
(println "latitude" latitude "is" location)