You can control the flow of your script with conditional statements & looping statements. By using conditional statements, you can write VBScript code which makes decisions and repeats actions. The given conditional statements are obtainable in VBScript:
If...Then...Else statement
Select Case statement
Making Decisions Using If...Then...Else
The If...Then...Else statement is utilized to evaluate whether condition is True or False and, based on the result, to denote one or more statements to execute. The condition is usually an expression which uses a comparison operator to compare one value or variable with another. For information regarding comparison operators, view Comparison Operators. If...Then...Else statements may be nested to as several levels as you need.