Posted 21 June 2012 - 06:33 PM
Hi, I'm pretty new to ComputerCraft, and I need some help with a coding error.
Error:
Bios:206: [string "startup"] :8: 'then' expected
I got this for ALL the code I've mad so far, and they are all about the same.
I tried quite a few things, but it still won't work!
the code I'm trying to fix right now:
tries = 3
print ("welcome")
print (" password: ")
triesnum = 1,tries,1 do
password = read()
if password = (pass) then
print ("acess granted")
else
print ("acess denied try again")
end
end
if triesnum == tries then
print ("acess denied.")
end
pretty simple, but I still can't fix it.
Error:
Bios:206: [string "startup"] :8: 'then' expected
I got this for ALL the code I've mad so far, and they are all about the same.
I tried quite a few things, but it still won't work!
the code I'm trying to fix right now:
Spoiler
pass = ("Startclan's lights")tries = 3
print ("welcome")
print (" password: ")
triesnum = 1,tries,1 do
password = read()
if password = (pass) then
print ("acess granted")
else
print ("acess denied try again")
end
end
if triesnum == tries then
print ("acess denied.")
end
pretty simple, but I still can't fix it.