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

[LUA][ERROR] '=' expected

Started by Deathura, 06 March 2012 - 05:36 PM
Deathura #1
Posted 06 March 2012 - 06:36 PM
Im familiar with programming overall, but not so with Lua, so it may be jus typo. However it doesn't make sense, since there is exactly same thing above, just with that difference it belongs to if statement, and problem belongs to it's elseif.

input = io.read()

if input == '1' then
term.clear()
print('Starting query program, please wait...')
sleep(3)
--shell.run(dedb_query)
elseif input == '2' then
term.clear
print('Starting tutorial, please wait...') -- THAT IS BUGGING
sleep(1)
--shell.run(dedb_tutorial)
end
Casper7526 #2
Posted 06 March 2012 - 06:42 PM
term.clear

term.clear()
Deathura #3
Posted 06 March 2012 - 07:42 PM
Oh yes it was just typo :unsure:/>/> thank you