if rs.getInput("front") and rs.getInput("back") then
monitor.setCursorPos(11,3)
elseif rs.getInput("front") then
monitor.setCursorPos(11,3)
elseif rs.getInput("back") then
monitor.setCursorPos(11,3)
else
monitor.setCursorPos(9,3)
end
I want to know what is the difference when i use various if instead of elseif ?
Like this:
if rs.getInput("front") and rs.getInput("back") then
monitor.setCursorPos(11,3)
end
if rs.getInput("front") then
monitor.setCursorPos(11,3)
end
if rs.getInput("back") then
monitor.setCursorPos(11,3)
else
monitor.setCursorPos(9,3)
end
How ComputerCraft will "READ" in both of cases?
Edited by Hayden_Almeida, 16 May 2015 - 02:13 AM.












