# .test page command (Output processor)

The .test page command tests the number
of lines left on the current page and determines whether the text
is output on the current or next page.

**Synonyms:** .tp

## Syntax

```
.test page {number.lines}
```

## Parameter(s)

| number.lines | If the number of lines specified is less than the count returned, the text following is output on the current page. Otherwise, a page is ejected and the text is output on the new page. This prevents blocks of text from being split across a page boundary. |
| --- | --- |

## Example(s)

Tests to determine if there are
at least 10 print lines remaining on the current output page. If there
are, the text following is printed on the same page, otherwise, a
form feed is issued and the text prints on the next page.

```
.test page 10
```

## See also

- [Output processor commands](https://d3codex.com/output-processor/output-processor-commands/)
- [Output processor overview](https://d3codex.com/output-processor/output-processor-overview/)

---
Source: https://d3codex.com/output-processor/dot-test-page-command-output-processor/ - part of the D3Codex reference.
