Files
coffeescript/documentation/cs/switch.cs
2009-12-23 20:48:55 -05:00

9 lines
217 B
C#

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