redstone.getOutput

From ComputerCraft Wiki
Revision as of 08:08, 30 May 2012 by Pinkishu (Talk | contribs)

Jump to: navigation, search


Grid Redstone.png  Function redstone.getOutput
Returns what was set with redstone.setOutput.
Syntax redstone.getOutput(string side)
Returns int
Part of ComputerCraft
API redstone

Examples

Grid paper.png  Example
Set the output of "left" to true, then print the output of "left".
Code
redstone.setOutput("left", true) -- Set the output on the left to true
print(redstone.getOutput("left")) -Print the output