Difference between revisions of "Printer.getPaperLevel"

From ComputerCraft Wiki
Jump to: navigation, search
m (If there are no args, leave the |args= field empty.)
(Changing int to number)
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=printer.getPaperLevel
 
|name=printer.getPaperLevel
|returns=[[int (type)|int]] the amount of paper in the printer
+
|returns={{type|number}} the amount of paper in the printer
 
|api=printer
 
|api=printer
 
|addon=ComputerCraft
 
|addon=ComputerCraft

Revision as of 14:04, 18 July 2013


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

Examples

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