The case statement is an elegant replacement for if/then/else if/else statements when making numerous comparisons.
www.tech-recipes.com