Standard form

Control flow / Conditional statements / if/else statements

(defn get-latitude [] 90)

(def latitude (get-latitude))

;; if takes exactly two branches: then and else
(println (if (= latitude 0) "at the Equator" "not at the Equator"))

;; a chain of "else if" is written as cond, and :else names the last branch
(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)