Difference between revisions of "Printer.getInkLevel"
From ComputerCraft Wiki
(Changing int to number) |
(corrected link for API) |
||
Line 3: | Line 3: | ||
|name=printer.getInkLevel | |name=printer.getInkLevel | ||
|returns={{type|number}} Amount of ink in printer. | |returns={{type|number}} Amount of ink in printer. | ||
− | |api= | + | |api=printer |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=Tells you how much ink is in the printer. | |desc=Tells you how much ink is in the printer. |
Revision as of 14:05, 18 July 2013
Function printer.getInkLevel | |
Tells you how much ink is in the printer. | |
Syntax | printer.getInkLevel() |
Returns | number Amount of ink in printer. |
Part of | ComputerCraft |
API | printer |
Examples
Example | |
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. |