Posted 26 June 2013 - 04:53 PM
Title: Error: do/then after '= true'
I'm working on a little program where I need this:
If I now start the program, I get this error: bios:338:[string: fell]:2: 'do' expected
Here's the full code:
The same thing happens with "if … =true then"
(Except the error is not with 'then' expected)
Does somebody know why this happens and how to fix it?
I'm working on a little program where I need this:
while turtle.compare() = true do
If I now start the program, I get this error: bios:338:[string: fell]:2: 'do' expected
Here's the full code:
local function FellDown()
while turtle.select(2) turtle.compare() = true do
turtle.dig()
end
end
The same thing happens with "if … =true then"
(Except the error is not with 'then' expected)
Does somebody know why this happens and how to fix it?