Files
coffeescript/documentation/cs/switch.cs
2009-12-24 01:33:59 -08:00

9 lines
217 B
C#

switch day
when "Tuesday" then eat_breakfast()
when "Wednesday" then go_to_the_park()
when "Saturday"
if day is bingo_day
go_to_bingo()
go_dancing().
when "Sunday" then go_to_church()
else go_to_work().