/* Simple when expression test */ grade : score -> when score is 90 then "A" 80 then "B" 70 then "C" _ then "F"; result : grade 95; ..out result;