Determine odd or even row in apex:repeat loop

Sometimes we need determine if the index is odd or even in tag, such as showing table row in alternate color.
There’s a simple soluton as below code:

Enjoy it!

Post Tagged with , , , ,