Conditional statements are used to perform different actions for different decisions.

In VBScript we have four conditional statements:

  • If statement - executes a set of code when a condition is true
  • If...Then...Else statement - select one of two sets of lines to execute
  • If...Then...ElseIf statement - select one of many sets of lines to execute
  • Select Case statement - select one of many sets of lines to execute



Practice Excercise Practice now