Select Case

When I see a Select Case statement in a VBScript, my respect for the script writer goes up at least one notch. Most beginning script writers can figure out the If...Then statement, and some even get the If...Then...Else construction down. However, few master the Select Case construction. This is really a shame, because Select Case is both elegant and powerful. Luckily for you, I love Select Case and you will be masters of this construction by the end of this chapter!

Get Microsoft® Windows® Scripting Self-Paced Learning Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.