Difference between revisions of "Redstone.testBundledInput"
From ComputerCraft Wiki
(Corrected mapping from "Boolean" to "Boolean (type)") |
(Changing int to number) |
||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=redstone.testBundledInput | |name=redstone.testBundledInput | ||
− | |args= | + | |args={{type|string}} side, {{type|number}} color value |
|api=redstone | |api=redstone | ||
− | |returns= | + | |returns={{type|boolean}} true if on, false if off |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|examples= | |examples= | ||
{{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]] (redstone.testBundledInput ("back", colors.blue)) | + | |code=[[print]](redstone.testBundledInput ("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 14:49, 18 July 2013
Function redstone.testBundledInput | |
No description provided. | |
Syntax | redstone.testBundledInput(string side, number color value) |
Returns | boolean true if on, false if off |
Part of | ComputerCraft |
API | redstone |
Examples
Example | |
Checks whether the blue part of the back input is active | |
Code |
print(redstone.testBundledInput ("back", colors.blue)) |
Output | true if the blue part of the back input is active, otherwise false |