in reply to switch statement
Depending upon what you want to do, a hash dispatch table might be your BFF in this case (bad pun intended.)