Difference between revisions of "Redstone.getBundledOutput"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:LuaCoreFunctions)
(Changing int to number)
 
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=redstone.getBundledOutput
 
|name=redstone.getBundledOutput
|args=[[string]] side
+
|args={{type|string}} side
 
|api=redstone
 
|api=redstone
|returns=[[int (type)|int]] the value of the colors that are activated on that side
+
|returns={{type|number}} the value of the colors that are activated on that side
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|examples=
 
|examples=
 
{{Example
 
{{Example
 
|desc=Prints the value of the active colors on the back
 
|desc=Prints the value of the active colors on the back
|code=[[print]] (redstone.getBundledOutput ("back"))
+
|code=[[print]](redstone.getBundledOutput ("back"))
 
|output=the value of the colors, for example 1 if only white is active.
 
|output=the value of the colors, for example 1 if only white is active.
 
}}
 
}}

Latest revision as of 11:50, 18 July 2013


Grid Redstone.png  Function redstone.getBundledOutput
No description provided.
Syntax redstone.getBundledOutput(string side)
Returns number the value of the colors that are activated on that side
Part of ComputerCraft
API redstone

Examples

Grid paper.png  Example
Prints the value of the active colors on the back
Code
print(redstone.getBundledOutput ("back"))
Output the value of the colors, for example 1 if only white is active.