printer.getInkLevel
From ComputerCraft Wiki
| Tells you how much ink is in the printer. | |
| Syntax | printer.getInkLevel() |
| Returns | number Amount of ink in printer. |
| Part of | ComputerCraft |
| API | peripheral |
Examples
| Prints true if there's ink in the printer. | |
| Code |
print(printer.getInkLevel() > 0) |
| Output | true if there is ink in the printer, false if there isn't ink. |