A bit of an odd situation (pun intended), but I have a repeat that works similar to striped rows, so every second row has a background colour assigned.
I used the following to get it working, create a repeat region, add a dmx-show to the element of
dmx-show="(($index % 2) == 0)"
Would anyone say this is a bad way of doing it as it is working using modulus and I always know that $index
is an unsigned int, so I do not think there could be a situation this would not work for. Any comments for improvement, or possible issues please let me know.
Community Page
Last updated:
Last updated: