From ComputerCraft Wiki
Revision as of 23:56, 5 May 2013 by Smiley43210 (Talk | contribs) (Named the return value)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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


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