printer.getPaperLevel

From ComputerCraft Wiki
Revision as of 21:10, 3 June 2013 by SuicidalSTDz (Talk | contribs) (Fixed integer tag and added a better description for returned value)

Jump to: navigation, search


Grid Redstone.png  Function printer.getPaperLevel
Returns the total amount of paper in the printer.
Syntax printer.getPaperLevel(none)
Returns int the amount of paper in the printer
Part of ComputerCraft
API printer

Examples

Grid paper.png  Example
Prints paper level
Code
print(printer.getPaperLevel())