Talk:Os.queueEvent

From ComputerCraft Wiki
Revision as of 14:32, 13 July 2012 by Banane9 (Talk | contribs)

Jump to: navigation, search

Is the Code supposed to not output hello when a redstone current comes? --Banane9 15:21, 12 July 2012 (UTC)

It is supposed to output "Hello" when a redstone current from the left side comes or when the player hits Enter - which works for me --Pinkishu 14:35, 13 July 2012 (CEST)
if event == "redstone" then
     if rs.getInput("left") then
       os.queueEvent("key",28)
     end
   elseif event == "key" then
     if param1 == 28 then
       print("Hello")
     end
   end

but the code says elseif, so i wonder why that would be executed when the event is redstone.