For your food example, it would be cleaner and achieve the same goal by having an array of acceptable foods and if argument is in the array, return yum, else return yuck.

No responses yet