$page->isNth()
Checks if the item is at a certain position
$page->isNth(int $n, Kirby\Cms\Pages|null $collection = null): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $nrequired | int |
no default value |
| $collection | Kirby\Cms\Pagesornull |
null
|
Return type
bool
This method modifies the existing $page object it is applied to and returns it again.