Posted 06 December 2012 - 06:29 AM
Sorry for n00b question. Spent all day reading the forum and watching youtube trying to understand how LUA works for a complete beginner with absolutely no programming skills what so ever and I'm strugging with it! Been experimenting trying to make a simple menu system using the pullEvent command to load other programs, but getting a bios:206: [string "a"]:15: 'then' expected error when I try to run it. Can anyone point me in the right direction please?
while true do
event, param1 = os.pullEvent()
if event == "char" and param1 == "1" then
shell.run("a")
elseif event == "char" and param1 == "2" then
shell.run("b")
elseif event == "char" and param1 == "3" then
break
end
end