Posted 01 April 2012 - 01:02 AM
y = "y"
im new to Computercraft and i'm testing something with Bundled Cables, and it says line 13 then expected
n = "n"
c = rs.setBundledOutput ( "back" )
if c == colors.lime false then print ("lights off")
write ("turn lights on?")
input == read()
if input == y then
rs.setBundledOutput ( "back", colors.lime )
elseif input == n then
os.shutdown()
elseif c == colors.lime true then
print ("lights on")
write ("trun them off")
input == read()
if input == y then
rs.setBundledOutput ( "back", colors.lime )
elseif input == n then
os.shutdown()
end
im new to Computercraft and i'm testing something with Bundled Cables, and it says line 13 then expected
n = "n"
c = rs.setBundledOutput ( "back" )
if c == colors.lime false then print ("lights off")
write ("turn lights on?")
input == read()
if input == y then
rs.setBundledOutput ( "back", colors.lime )
elseif input == n then
os.shutdown()
elseif c == colors.lime true then
print ("lights on")
write ("trun them off")
input == read()
if input == y then
rs.setBundledOutput ( "back", colors.lime )
elseif input == n then
os.shutdown()
end