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

[Error]bios:206: [string "quarry.lua"]:2: '=' or 'in' expected

Started by steelsoldat, 08 July 2012 - 07:45 PM
steelsoldat #1
Posted 08 July 2012 - 09:45 PM
I am getting the error above, 'bios:206: [string "quarry.lua"]:2: '=' or 'in' expected'.
Please help! :)/>/>

local i = 192
for i>0 do
if turtle.detect() then
	turtle.dig()
end
if turtle.detectup() then
	turtle.digUp()
end
if turtle.detectdown() then
	turtle.digDown()
end
turtle.forward()
i = i - 1
end
turtle.turnright()
turtle.turnright()
local j = 192
for j > 0 do
turtle.forward()
j = j - 1
end
KevinW1998 #2
Posted 08 July 2012 - 09:52 PM
for .. do don't uses Operations like ">", "<", "==" ect..
you need to use:

for l = 0,i do
--Your code
end
steelsoldat #3
Posted 08 July 2012 - 09:55 PM
for .. do don't uses Operations like ">", "<", "==" ect..
you need to use:

for l = 0,i do
--Your code
end
Thank you is worked!