Difference between revisions of "Redstone.testBundledInput"

From ComputerCraft Wiki
Jump to: navigation, search
(fixed link)
m (Moved to CAT:LuaCoreFunctions)
Line 13: Line 13:
 
}}
 
}}
 
}}
 
}}
 +
 +
[[Category:Lua_Core_Functions]]

Revision as of 18:53, 28 November 2012


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

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