Jump to content




I Have No Idea Why This Isn't Working


1 reply to this topic

#1 TheZipCreator

  • Members
  • 27 posts
  • LocationNew York, US

Posted 27 November 2016 - 03:55 PM

So, I Have A Piece Of Code And It Gives me the Error
bios:14: [string ".temp" ];3; '<eof>' expected
Here's The Code:
if fs.exists("main") then
os.run("main")
end else
term.setBackgroundColor( colors.gray )
term.clear()
print("Cant Find OS, Please Re-Install")
wait(5)
os.reboot()
end


#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 27 November 2016 - 11:54 PM

Aw, not another OS... It got old a long time ago.

Anyway, you can't "else" an "if" block you've already "end"ed.

http://lua-users.org...ructureTutorial





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users