shorthand `case` for if/else if chain