Skip to content

Kirby 4.7.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