Control Structures in VBScript
Conditional Statements
If Statement
If Age = 100 Then
MsgBox "Congratulations!"
An If statement first checks to see if the specified condition evaluates to True or False. If it evaluates to True, then
it evaluates a set of statements. In the example above, the "Congratulations!" message box is only displayed if Age = 100, i.e. if Age is equal to 100.
If Age = 100 Then
MsgBox "Congratu...