Difference between revisions of "Redstone.getOutput"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "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...")
 
m (Added lowercase template; should be properly formatted with the function template)
Line 1: Line 1:
 +
{{lowercase}}
 
Redstone.getOutput(side) returns whatever you had set with Redstone.setOutput(side, out).  
 
Redstone.getOutput(side) returns whatever you had set with Redstone.setOutput(side, out).  
 
== Example ==
 
== Example ==

Revision as of 17:46, 6 May 2012

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