Wednesday, 18 September 2013

cant preform an if statement correctly

cant preform an if statement correctly

This has been bugging me for a long time, I've been making a program that
simply preforms an action if you type in a certain password. I keep
getting a error saying ":4: '' expected or "if statement expected" Please
help!
textutils.SlowPrint("type the password")
--This is a W.I.P and it is in a basic stage!
pass = ImCool
setCursorPos.(4,5)
input.read(*)
--problem is here
if input = pass then
print("You did it"!)

No comments:

Post a Comment