RosettaCodeData/Task/Boolean-values/E/boolean-values-1.e

9 lines
176 B
Text
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
? if (true) { "a" } else { "b" }
# value: "a"
? if (false) { "a" } else { "b" }
# value: "b"
? if (90) { "a" } else { "b" }
# problem: the int 90 doesn't coerce to a boolean