Difference between revisions of "Redstone.getOutput"

From ComputerCraft Wiki
Jump to: navigation, search
m (Added lowercase template; should be properly formatted with the function template)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
Redstone.getOutput(side) returns whatever you had set with Redstone.setOutput(side, out).
+
{{Function
== Example ==
+
|name=redstone.getOutput
redstone.setOutput("left", true) -- Set the output on the left to true
+
|args=[[string]] side
 
+
|returns=[[int (type)|int]]
print(redstone.getOutput("left")) -Print the output
+
|api=redstone
 +
|desc=Returns what was set with [[redstone.setOutput]].
 +
}}

Revision as of 08:07, 30 May 2012


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