redstone.getOutput

From ComputerCraft Wiki
Revision as of 17:46, 6 May 2012 by Onionnion (Talk | contribs) (Added lowercase template; should be properly formatted with the function template)

Jump to: navigation, search

Redstone.getOutput(side) returns whatever you had set with Redstone.setOutput(side, out).

Example

redstone.setOutput("left", true) -- Set the output on the left to true

print(redstone.getOutput("left")) -Print the output