RosettaCodeData/Task/Conditional-structures/Ol/conditional-structures-2.ol

10 lines
235 B
Plaintext

(if (= (* 2 2) 4)
(print "if-then-else: equal")
(print "if-then-else: non equal"))
; ==> if-then-else: equal
(if (= (* 2 2) 6)
(print "if-then-else: equal")
(print "if-then-else: non equal"))
; ==> if-then-else: non equal