Difference between revisions of "Redstone.getBundledInput"
From ComputerCraft Wiki
m (added links) |
|||
Line 9: | Line 9: | ||
{{Example | {{Example | ||
|desc=Checks whether the blue part of the back input is active | |desc=Checks whether the blue part of the back input is active | ||
− | |code=print(colors.test(redstone.getBundledInput("back"), colors.blue)) | + | |code=[[print]] ([[colors.test]] (redstone.getBundledInput("back"), colors.blue)) |
|output=true if the blue part of the back input is active, otherwise false | |output=true if the blue part of the back input is active, otherwise false | ||
}} | }} | ||
}} | }} |
Revision as of 16:49, 8 July 2012
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
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 |