This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
cyadwauu's profile picture

Error saying 'then' expected when there is a then

Started by cyadwauu, 09 May 2013 - 09:02 PM
cyadwauu #1
Posted 09 May 2013 - 11:02 PM
I was creating an elevator script with "logic" and i have come across the error:
bios:206: [string "elevator"]:38 'then' expected.

The section of the script it is in is:
if distance == -2 then
down()
down()
level = level-2
waiting = true
end

The line it points to is the end.
Lyqyd #2
Posted 10 May 2013 - 10:46 AM
Split into new topic.

Post the whole script, please.