redstone.getInput
From ComputerCraft Wiki
Revision as of 13:42, 30 November 2012 by AfterLifeLochie (Talk | contribs) (Corrected mapping from "Boolean" to "Boolean (type)")
| No description provided. | |
| Syntax | redstone.getInput(string side) |
| Returns | boolean state of redstone signal |
| Part of | ComputerCraft |
| API | redstone |
Examples
| 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.