Difference between revisions of "Redstone.testBundledInput"
From ComputerCraft Wiki
(created the page, anyone please check - never used that function) |
(fixed link) |
||
Line 4: | Line 4: | ||
|args=[[string (type)|string]] side, [[int (type)|int]] color value | |args=[[string (type)|string]] side, [[int (type)|int]] color value | ||
|api=redstone | |api=redstone | ||
− | |returns=[[ | + | |returns=[[boolean]] true if on, false if off |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|examples= | |examples= |
Revision as of 17:01, 8 July 2012
Function redstone.testBundledInput | |
No description provided. | |
Syntax | redstone.testBundledInput(string side, int 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 |