Difference between revisions of "Redstone.getBundledInput"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "{{Function |name=redstone.getBundledInput |args=string side |api=redstone |returns=colors the colours that are activated on that side |addon=ComputerCraft |examples= {...")
 
Line 3: Line 3:
 
|args=[[string]] side
 
|args=[[string]] side
 
|api=redstone
 
|api=redstone
|returns=[[colors]] the colours that are activated on that side
+
|returns=[[colors (type)|colors]] the colours that are activated on that side
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|examples=
 
|examples=

Revision as of 04:19, 26 February 2012

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

Examples

Grid paper.png  Example
Checks whether the blue part of the back input is active
Code
print(colors.test(redstone.getBundledInput("back"), colors.blue))
Output true if the blue part of the back input is active, otherwise false