Evaluating case expressions