Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # cond <code> cond (expression evaluation1) statement #1 (expression evaluation2) statement #2 (expression evaluationN) statement #N :else statement #Default </code> ### Example <code> (ns clojure.examples.hello (:gen-class)) ;; This program displays Hello World (defn Example [] (def x 5) (cond (= x 5) (println "x is 5") (= x 10)(println "x is 10") :else (println "x is not defined"))) (Example) </code> #### Output <code> x is 5 </code> ## Refs - https://www.tutorialspoint.com/clojure/clojure_cond_statement.htm open/cond.txt Last modified: 2024/10/05 06:15by 127.0.0.1