Switch if/else order