Nobody said it was the same syntactically. Semantically, however, you're doing the same thing with a set of if statements.