Skip to content

Kirby 4.2.0

$segments->isOdd()

Checks if the number of elements is odd

$segments->isOdd(): bool

Return type

bool

Parent class

Kirby\Query\Segments inherited from Kirby\Toolkit\Collection