RosettaCodeData/Task/Conditional-structures/CoffeeScript/conditional-structures-3.coffee
2013-04-11 11:14:19 -07:00

7 lines
106 B
CoffeeScript

s = if condition then "yup" else "nope"
# alternate form
s = \
if condition
then "yup"
else "nope"