I have the following code:
(these first 3 lines would be in the picture but the screen wasnt big enough to show them)
term.setBackgroundColor(colors.red)
term.clear()
term.setCursorPos(1,1)
(https://camo.tmpim.com/6c024c69651933cfe03f621635f4dc0b17116e7f/68747470733a2f2f69696c692e696f2f6458613667392e706e67)
and it seems to me that everything is right, but when i run it, the computer returns the error:
bios.lua:26: [string ".temp"]:21: 'end' expected (to close 'while' at line 12)
but as you can see, there is clearly an "end" on line 21. Why am i getting this error?
pastebin put fileName
and linking it is a better way to show your code on the forums.
else if
is not the same as elseif
one requires a extra end the other doesn't
Quote from: Pechu317 on Aug 13, 2020, 08:11 PM-snip-
For beginners like you, try taking this manual to begin coding on lua (https://www.lua.org/manual/5.1/), so you can start learning how to code like us!