Difference between revisions of "Printer.newPage"
From ComputerCraft Wiki
(Created page with "{{lowercase}} {{Function |name=printer.newPage |args=none |returns=(boolean) If the page creation was succesful. |api=none |addon=ComputerCraft |desc=Creates a new...") |
|||
| Line 3: | Line 3: | ||
|name=printer.newPage | |name=printer.newPage | ||
|args=none | |args=none | ||
| − | |returns=[[boolean|(boolean)]] If the page creation was | + | |returns=[[boolean|(boolean)]] If the page creation was successful. |
|api=none | |api=none | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
| Line 10: | Line 10: | ||
{{Example | {{Example | ||
|desc= Creates a new page. | |desc= Creates a new page. | ||
| − | |code=printer.newPage() | + | |code=print(printer.newPage()) |
| − | |output= | + | |output=true if the page creation was successful, otherwise false |
}} | }} | ||
}} | }} | ||
Revision as of 02:12, 26 September 2012
| Creates a new page to be printed. | |
| Syntax | printer.newPage(none) |
| Returns | (boolean) If the page creation was successful. |
| Part of | ComputerCraft |
| API | none |
Examples
| Creates a new page. | |
| Code |
print(printer.newPage()) |
| Output | true if the page creation was successful, otherwise false |