Twig using set to determine if a loop.index is odd or even Andrew Fletcher 13 February 2021 2 minutes read Working in Laravel, I needed to loop through an array and know whether the current loop was odd or even row. To do this add the expression to your Twig file: October CMS twig