[ic] weird behaviour.

Cameron Germein cameron.germein@team.eftel.com
Thu, 25 Jan 2001 16:45:52 +0800


I'm trying to build a page with a loop search on it, but it appears not to
recognize that i've got the [/loop] tag in there, and it's just going
straight on to the end of the html, and then realising "oh, he didnt close
the loop, i'll loop from here!". Needless to say, the resulting html isnt
very pretty :) Any idea why Interchange would "not see" the [/loop]? i'm not
nesting them or anything, it's just a straight up loop. here's the html,
incase you're wondering...

[set name="colour"]0[/set]
[loop search="ra=yes/fi=products"]
[if scratch colour == 0]

[set name="colour"]1[/set]
[set name="bg"]#FFFFFF[/set]

[else]

[set name="colour"]0[/set]
[set name="bg"]#F7F7F7[/set]

[/else]

[/if]

<tr bgcolor="[scratch bg]">
<td width="31">
<div align="center"><font face="Verdana, Arial, Helvetica, sans-serif"
size="1">[loop code]</font></div>
</td>
<td width="289"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"
color="#336699"><a href="[loop-code].html" class="conten
t">[loop-field description]</a></font></td>
<td width="111">
<div align="right"><font face="Verdana, Arial, Helvetica, sans-serif"
size="1">$[loop-field price]</font></div>
</td>
<td width="77">
<div align="center"><font size="1" face="Verdana, Arial, Helvetica,
sans-serif"><a href="myshoppingcart.htm" class="content">Add to
Cart</a></font></div>
</td>
</tr>

[/loop]