add a case-like control structure