Files
coffeescript/documentation/cs/switch.cs
2009-12-21 11:41:45 -05:00

7 lines
201 B
C#

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