1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/documentation/coffee/switch.coffee

10 lines
213 B
CoffeeScript
Raw Normal View History

2009-12-21 11:41:45 -05:00
switch day
2010-09-16 00:32:57 -04:00
when "Mon" then go work
when "Tue" then go relax
when "Thu" then go iceFishing
2010-01-13 23:24:45 -05:00
when "Fri", "Sat"
if day is bingoDay
2010-09-16 00:32:57 -04:00
go bingo
go dancing
when "Sun" then go church
else go work