Basic Conditional
Use conditionals to test to see if a condition holds:
- If temp < 32 Then
state = “frozen”
form = “ice”
End If
General form of basic conditional:
If <T/F expression> Then
<statement list>
End If
What this means:
- First, the <T/F expression> is evaluated
- If the outcome is true, then the statements that follow are performed
- If the outcome is false, then the statements that follow are skipped