The problem that I'm having is that the if condition determined by the loop counter j always branches to else even though as I understand this the first pass through the loop should match ${j = 1}. Can someone please explain why?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Found a soultion to my problem by capturing the count of list items in a separate var and then comparing to the loop index var using the toInt() method on both the count of list items var and the loop index var.
Hi,
I hope someone can help. I am trying to build a delimited list (delimited by |) to a temporary file with the following code:
<loop item="professionList" index="j">
<list>
<xpath expression="(//div<span>[@class='categories']</span>//li/text())">
</xpath>
</list>
<body>
The problem that I'm having is that the if condition determined by the loop counter j always branches to else even though as I understand this the first pass through the loop should match ${j = 1}. Can someone please explain why?
Found a soultion to my problem by capturing the count of list items in a separate var and then comparing to the loop index var using the toInt() method on both the count of list items var and the loop index var.