RosettaCodeData/Task/Conditional-structures/Clojure/conditional-structures-2.clj

5 lines
150 B
Clojure

(when x
(print "hello")
(println " world")
5) ; when x is logical true, prints "hello world" and returns 5; otherwise does nothing, returns nil