[ic] loop-last question
Chris Wenham
cwenham at synesmedia.com
Thu Oct 9 20:51:31 EDT 2003
On Thursday 09 October 2003 16:35, Grant wrote:
> [tmp counter]0[/tmp]
> [loop search="ml=10000/ra=yes"]
> [tmp counter][calc] [scratch counter] + 1 [/calc][/tmp]
> code: [loop-code]<br />
> [loop-last][calc] return 1 if '[scratch counter]' > 9;
> [/calc][/loop-last]
> [/loop]
>
> and it returns all of the SKUs in my products table. It seems like the
> loop should stop when the counter hits 9. Does anyone know what I'm doing
> wrong?
Try:
[loop search="ml=10000/ra=yes"]
code: [loop-code]<br />
[loop-last][calc] return '[loop-increment]' > 9; [/calc][/loop-last]
[/loop]
(Of course, you could also just set ml=9, but I assume you're just using a
contrived example to show your point.)
Regards,
--
Chris Wenham
Synesmedia, Inc. - www.synesmedia.com
Quality Interchange programming & consulting
Phone: 516-620-4110 - Fax: 516-908-7824
Toll-free: 1-888-255-7573
More information about the interchange-users
mailing list