Adds a case statement over the expression.