it isnt the same
Fact1: in your case example you compare 0 - 3 and in your if example 1-4. It would be the same if you use the same values.
Fact2: the switch/case statement is a lot faster then if/elseiif
Fact3: it looks better in the file
Fact4: you cant compare strings with the switch/case statement