Checking for Even/Odd Indexes | A Beginners Guide to Antlers Arrays and Loops
There are numerous ways to check if an array index is even or odd within an Antlers template. The first and simplest is to use the switch tag to alternate between two classes. We will use the data in Example 1.63 throughout this section: Example...