It's not the same. That will only ever execute a single collection of commands, whereas a select statement woud perform all commands below the case position aswell unless broken out of. qwerty's way is the only way I can see of doing it, and it's not an obvious solution that would come into most people's heads.

Spelling mistakes, grammatical errors, and stupid comments are intentional.