Identifier: SiffCond
Prerequisites: SiffNum
Conditional (if) expressions in Sifflet
Students should be able to define and interpret Sifflet functions that use the if expression.
Sifflet Tutorial Lesson 3
Available in Oncourse Modules
Define and test a Sifflet function that classifies the age of a person as follows: if the person's age is 19 or less, the person is "young"; otherwise "old". The function should return the string "young" or "old".