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

5 lines
232 B
Text
Raw Permalink Normal View History

2019-09-12 10:33:56 -07:00
(if (= (* 2 2) 4) (print "if-then-else: equal") (print "if-then-else: non equal"))
(if (= (* 2 2) 6) (print "if-then-else: non equal") (print "if-then-else: i don't know"))
; ==> if-then-else: equal
; ==> if-then-else: i don't know