redstone.testBundledInput

From ComputerCraft Wiki
Revision as of 14:49, 18 July 2013 by Cranium (Talk | contribs) (Changing int to number)

Jump to: navigation, search


Grid Redstone.png  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

Grid paper.png  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