Difference between revisions of "Redstone.getBundledInput"
From ComputerCraft Wiki
m (Colors is not a type, and an object of type Colors is not returned; it is an integer value.) |
m (Correcting link for number) |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
|args=[[string]] side | |args=[[string]] side | ||
|api=redstone | |api=redstone | ||
− | |returns=The | + | |returns=The {{type|number}} representation of the colours (see [[Colors_(API)|Colors (API)]]) that are activated on that side |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|examples= | |examples= |
Latest revision as of 10:59, 18 July 2013
Function redstone.getBundledInput | |
No description provided. | |
Syntax | redstone.getBundledInput(string side) |
Returns | The number representation of the colours (see Colors (API)) that are activated on that side |
Part of | ComputerCraft |
API | redstone |
Examples
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 |