Block statements
- Selecting one or the other with the If...Then...Else statement
The block statement If...Then...Else specifies conditional execution of either one group or another group of statements, depending on the value of an expression. Each statement group is usually just one short statement, since the entire If...Then...Else statement must be written on one line. - Specifying multiple test conditions with the If...Then...ElseIf statement
The block statement If...Then...ElseIf specifies conditional execution of one or another group of statements, depending on whether one or more expressions evaluates to TRUE or FALSE. - Making a choice with the Select Case statement
The block statement Select Case specifies conditional execution of one group of statements selected from one or more groups, depending on the value of an expression. It is similar to the If...Then...ElseIf statement.
Parent topic: Managing Flow in Scripts
Related concepts:
Related reference: