Hi,
I have the following code snippet for iterating over a list and outputting index values based upon verifying the index number equals 0:
Before creating the above, I had the following:
This correctly outputted the index number for all elements in the iterator.
For some reason, when I include an s:if tag (as per my first snippet) and attempt to
test the rowStatus index i.e. rowStatus.index == 0, this fails to evaluate and thus is never evaluated as true. As an aside, if I altered the first code snippet to:
In this instance, the s:if tag evaluates the test and alternately prints out the index number.
Would appreciate advice as to why I can't use the rowstatus.index inside an s:if tag.
Thanks in advance.