An If statement consists of a Boolean expression followed by one or more statements. If the condition is said to be True, the statements under If condition(s) are executed. If the condition is said to be False, the statements after the If loop are executed.
Following is the syntax of an If statement in VBScript.
If(boolean_expression) Then Statement 1 ..... ..... Statement n End If