Posted 03 May 2013 - 12:55 PM
i tried to make little program that ejects a floppy as soon as its injected. But every time I am starting the program, I am getting the same error:'=' expected.
Code:
I just don't get it !! What's wrong with this code ????
Code:
function Check()
local x= peripheral.isPresent("left")
local y= peripheral.getType("left")
If x==true and y=="drive" then disk.eject("left") end
end
Check()
I just don't get it !! What's wrong with this code ????