Posted 28 February 2013 - 05:00 AM
Hey guys!
I'm a total newbie to programming and got a basic question about true and false: how does the computer save them to the next line? I mean, if I got a statement that results in either false or true (redstone.Input e.g.), do I have to conserve it somehow to further work with it?
Here is my code and unfortunately it doesn't work.
redstone.testBundledInput("back", colors.white)
if true then
for i=1, 4 do
redstone.setBundledOutput("back", colors.orange)
sleep(0.5)
redstone.setBundledOutput("back", 0)
sleep(0.5)
else
redstone.setBundledOutput("back", colors.orange)
sleep(0.5)
redstone.setBundledOutput("back", 0)
Maybe somebody can help me?
I'm a total newbie to programming and got a basic question about true and false: how does the computer save them to the next line? I mean, if I got a statement that results in either false or true (redstone.Input e.g.), do I have to conserve it somehow to further work with it?
Here is my code and unfortunately it doesn't work.
redstone.testBundledInput("back", colors.white)
if true then
for i=1, 4 do
redstone.setBundledOutput("back", colors.orange)
sleep(0.5)
redstone.setBundledOutput("back", 0)
sleep(0.5)
else
redstone.setBundledOutput("back", colors.orange)
sleep(0.5)
redstone.setBundledOutput("back", 0)
Maybe somebody can help me?