Difference between revisions of "Printer.getPaperLevel"
From ComputerCraft Wiki
SuicidalSTDz (Talk | contribs) m (Fixed integer tag and added a better description for returned value) |
m (If there are no args, leave the |args= field empty.) |
||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=printer.getPaperLevel | |name=printer.getPaperLevel | ||
− | |||
|returns=[[int (type)|int]] the amount of paper in the printer | |returns=[[int (type)|int]] the amount of paper in the printer | ||
|api=printer | |api=printer |
Revision as of 23:54, 7 July 2013
Function printer.getPaperLevel | |
Returns the total amount of paper in the printer. | |
Syntax | printer.getPaperLevel() |
Returns | int the amount of paper in the printer |
Part of | ComputerCraft |
API | printer |
Examples
Example | |
Prints paper level | |
Code |
print(printer.getPaperLevel()) |