문서 보기역링크PDF로 내보내기맨 위로 이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요. # if/do <code> if(condition) ( statement #1 statement #1.1 ) ( statement #2 statement #2.1 ) </code> ### Example <code> (ns clojure.examples.hello (:gen-class)) ;; This program displays Hello World (defn Example [] ( if (= 2 2) (do(println "Both the values are equal") (println "true")) (do(println "Both the values are not equal") (println "false")))) (Example) </code> #### Output <code> Both the values are equal true </code> ## Refs - https://www.tutorialspoint.com/clojure/clojure_if_do_expression.htm open/if-do.txt 마지막으로 수정됨: 2021/11/22 23:38저자 127.0.0.1