FIT
100
© Copyright University of Washington 1999-2000
Example of If-Then-Else
v
An advantage of the general conditional is that the
statement lists can contain other conditionals
;
v
If flip1 = guess1 Then
If flip2 = guess2 Then
score = “win win”
Else
score = “win lose”
End If
Else
If flip2 = guess2 Then
score = “lose win”
Else
score = “lose lose”
End If
End If