Demonstration code for several things at the same time

el_supremo:
@jiggy-ninja:
I also prefer the switch statement but you need break statements in there to make it equivalent to the original code. I would write it like this:

Pete

.< Doh!

And that, ladies and gentlemen, is one argument against using switches.

2 Likes