So i was learning how to use the computercraft mod. I made this startupprogram that would let me enter a username and a password before opening a door. But for some reason i cant type in it. this is what the coding looks like:
if true then
.term.clear(doorcontrol)
.term.setCursorPos(1,1)
.print("username:")
.if input ~= "guzse" then
..print("password:")
..read = ("*")
..if input ~= "Dooracces" then
...redstone.setOutput ("bottom", true)
...sleep (3)
...redstone.setOutput ("bottom", false)
..end
.end
end
(points are space's)
And now i cant type, but it does show username: and password:
What did i do wrong?
Thank you anyway