Handle "case" and "when" nodes