Updated example using @epidemian's suggestion

This commit is contained in:
Gabe Hollombe 2012-10-16 16:41:14 +11:00
parent 7065538224
commit 334dcbd162
1 changed files with 5 additions and 5 deletions

View File

@ -1,8 +1,8 @@
score = 76
grade = switch
when 90 <= score then 'A'
when 80 <= score < 90 then 'B'
when 70 <= score < 80 then 'C'
when 60 <= score < 70 then 'D'
when score < 60 then 'F'
when score < 60 then 'F'
when score < 70 then 'D'
when score < 80 then 'C'
when score < 90 then 'B'
else 'A'
# grade == 'C'