added AST support for CASE/WHEN/THEN/ELSE/END