another way to do this is a compound switch statement:class
He asking you what you meant by that. I think you mean a cascading switch, very populat in C++.
Steve is right, Stephs concept is a little better, both require hard coding of the data, something that gives Apu a brain freeze faster than engulfing squishees, but...
A compound switch would indeed imply a switch statement inside another's case. Though, I am having trouble try to come up with a good reason to do this, wait...
something like that, though there may be more elegant ways.