Difference between revisions of "Printer.getInkLevel"
From ComputerCraft Wiki
MathManiac0 (Talk | contribs) (Added Page) |
m (Moved to CAT:LuaCoreFunctions) |
||
Line 13: | Line 13: | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | [[Category:Lua_Core_Functions]] |
Revision as of 18:50, 28 November 2012
Function printer.getInkLevel | |
Tells you how much ink is in the printer. | |
Syntax | printer.getInkLevel() |
Returns | (int) Amount of ink in printer. |
Part of | ComputerCraft |
API | peripheral |
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. |