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. # if <code> if (condition) statement#1 statement#2 </code> {{ https://www.tutorialspoint.com/clojure/images/if_statement.jpg }} ### Example <code> (ns clojure.examples.hello (:gen-class)) ;; This program displays Hello World (defn Example [] ( if ( = 2 2) (println "Values are equal") (println "Values are not equal"))) (Example) </code> #### Output <code> Values are equal </code> ## Refs - https://www.tutorialspoint.com/clojure/clojure_if_statement.htm open/if.txt Last modified: 2024/10/05 06:15by 127.0.0.1