If...Then...Else
It is important to point out here that you can use If...Then...Else without the intervening ElseIf commands. In such a construction, you give the script the ability to make a choice between two options.
The use of If...Then...Else is illustrated in the following code:
Option Explicit On Error Resume Next Dim a,b,c,d a = 1 b = 2 c = ...
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.