I have a ant parameter with list of values as below.
releases=release1,release2
I use the below for loop to process the values.
<for list="${releases}" param="release">
<sequential>
<echo>Processing @{release}</echo>
</sequential>
<for>
I want to do something like, I want to echo the below statement only when the @{release}=release2
<echo>Processing last release</echo>
I am not quite sure how to get the index of the list items or if it is even possible.
Thanks in advance, Balaji