Convert SWITCH statements with IF to be compatible with ADT 14