I have come across this ability of thymeleaf which based on the iterator I can specify the class of the dom element.
<tr th:each="item,iter : ${items}" th:class="${iter.odd} ? 'info' : '' " >
However, I want to do that on a specific row (let's say the 5th) and none of these statements work
<tr th:each="item,iter : ${items}" th:class="${iter == 5} ? 'info' : '' " >
<tr th:each="item,iter : ${items}" th:class="${iter} == 5 ? 'info' : '' " >
Is this not the appropriate syntax?