You are on page 1of 1

S = "regular" & " "

End If
If b = true then
S = "Spicy" & " "
End if
result = "you chose" & " " & S & "sauce pizza with"
If (C=1) then
T = T & " " & "Cheese"
choice = 1
end if
If (D=1) then
T = T & " " & "pepper"
choice = (choice + 1)
end if
If (E=1) then
T = T & " " & "mushroom"
choice = (choice + 1)
end if
if (choice = 1) then
msgbox (result & T & toppings" & "."), vbOKOnly + VbInformation
end if
if (choice = 0) then
msgbox (result & " no toppings" & "."), vbOKOnly + VbInformation
if (choice > 1) then
msgbox (result & " the following toppings" & T & "."), vbOKOnly + VbInformation
end if
endsub

You might also like