Difference between revisions of "Printer.getPaperLevel"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "{{lowercase}} {{Function |name=printer.getPaperLevel |args=none |returns=Value(Number) |api=printer |addon=ComputerCraft |desc=Returns the total amount of paper in the printer...")
 
(It's not in an API. also, changed the example and returns=)
Line 3: Line 3:
 
|name=printer.getPaperLevel
 
|name=printer.getPaperLevel
 
|args=none
 
|args=none
|returns=Value(Number)
+
|returns=Int_(type)
|api=printer
+
|api=none
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|desc=Returns the total amount of paper in the printer.
 
|desc=Returns the total amount of paper in the printer.
 
|examples=
 
|examples=
 
{{Example
 
{{Example
|desc=Get paper level
+
|desc=Prints paper level
|code=printer.getPaperLevel()
+
|code=print(printer.getPaperLevel())
 
}}
 
}}
 
}}
 
}}

Revision as of 02:05, 23 September 2012


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

Examples

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