Skip to content

Kirby 6.0.1

$fieldset->isNth()

Checks if the item is at a certain position

$fieldset->isNth(int $n, Fieldsets|null $collection = null): bool

Parameters

Name Type Default
$nrequired int no default value
$collection Kirby\Cms\Fieldsetsornull null

Return type

bool

Parent class

Kirby\Cms\Fieldset inherited from Kirby\Cms\Item