09-06-2012, 12:59 PM
StartProgram:
TextWindow.Write ("Is the sprite perfect? Y/N >")
x = TextWindow.Read()
y = Text.ConvertToUpperCase (x)
If y = "Y" Then
Goto EndProgram
ElseIf y = "N" then
TextWindow.WriteLine ("Try harder!")
TextWindow.Read()
Goto StartProgram
Else
TextWindow.WriteLine ("That's not a valid answer.")
TextWindow.Read()
Goto StartProgram
EndIf
EndProgram:
TextWindow.WriteLine ("Your sprite is perfect!")
TextWindow.Read()
TextWindow.Write ("Is the sprite perfect? Y/N >")
x = TextWindow.Read()
y = Text.ConvertToUpperCase (x)
If y = "Y" Then
Goto EndProgram
ElseIf y = "N" then
TextWindow.WriteLine ("Try harder!")
TextWindow.Read()
Goto StartProgram
Else
TextWindow.WriteLine ("That's not a valid answer.")
TextWindow.Read()
Goto StartProgram
EndIf
EndProgram:
TextWindow.WriteLine ("Your sprite is perfect!")
TextWindow.Read()