Conditionals
Conditional operations allow variables to be tested to determine what the next operation should be
The If-Then-Else is the most widely used conditional
Structurally, the If-Then-Else has the form
If <condition goes here> Then
<Then-clause instructions go here>
Else
<Else-clause instructions go here>
End If
Parts of a conditional:
- Key words: If, Then, Else, End If
- Test or Predicate, between If and Then
- Then clause
- Else clause (optional)
- End If terminator