FIT   100
© Copyright University of Washington 1999-2000
General Conditional Statement
vWhen operations must be performed for the true outcome and different operations are need for a false outcome, use the If-Then-Else statement
vGeneral form
oIf <T/F expression> Then
o <statement list>
oElse
o <statement list>
oEnd If
If sideUp = sideCalled Then
   coinTossWinner = hostTeam
   firstHalfOffense = hostTeam
   secondHalfOffense = visitorTeam
Else
   coinTossWinner = visitorTeam
   firstHalfOffense = visitorTeam
   secondHalfOffene = hostTeam
End If