Posted 30 October 2012 - 03:13 PM
I'm trying to write a password program and it just won't work
I am getting a '=' expected error on line 4 (the if statement line). I tried searching for various fixes but nothing seemed to work. Any help would be appreciated :P/>/>
correctPassword = "shadow"
write ("please enter password:")
password = read()
If password == correctPassword Then
print("correct!")
redstone.setOutput("left", true)
sleep(5)
os.shutdown
else
print("incorrect")
sleep(5)
os.shutdown
end
I am getting a '=' expected error on line 4 (the if statement line). I tried searching for various fixes but nothing seemed to work. Any help would be appreciated :P/>/>