Difference between revisions of "Redstone.getInput"
From ComputerCraft Wiki
m (added a link) |
m (Moved to CAT:LuaCoreFunctions) |
||
Line 14: | Line 14: | ||
* This function will throw an error if you give it an invalid side. | * This function will throw an error if you give it an invalid side. | ||
}} | }} | ||
+ | |||
+ | [[Category:Lua_Core_Functions]] |
Revision as of 18:53, 28 November 2012
Function redstone.getInput | |
No description provided. | |
Syntax | redstone.getInput(string side) |
Returns | boolean state of redstone signal |
Part of | ComputerCraft |
API | redstone |
Examples
Example | |
Checks if the computer is receiving a redstone signal | |
Code |
print (redstone.getInput("back")) |
Output | true if the computer is getting redstone power from the back; otherwise false |
Additional Notes
- This function will throw an error if you give it an invalid side.