[ic] loop-last based on a scratch value

Ed LaFrance edl at newmediaems.com
Fri Nov 7 10:47:32 EST 2003


At 07:01 PM 11/7/2003 +0100, you wrote:
>On Fri, 7 Nov 2003 09:43:31 -0800
>"Grant" <listbox at email.com> wrote:
>
> > The following doesn't work.  Is it a syntax problem, or is a loop-last 
> based
> > on a scratch value just not going to happen?
> >
> > [loop-last][loop-calc] return 1 if $Scratch->{listing_counter} == 4;
> > [/loop-calc][/loop-last]
>
>I think it is pretty obvious from the documentation that you need the
>regular calc tag inside of the loop-last.
>
>Bye
>         Racke

Stefan is quite right, so to correct my earlier answer:

[loop-last][calc] return 1 if $Scratch->{listing_counter} == 4; return 0; 
[/calc][/loop-last]

http://www.icdevgroup.org/i/dev/docfly.html?mv_arg=ictags04.44

- Ed


===============================================================
New Media E.M.S.              Technology Solutions for Business
11630 Fair Oaks Blvd., #250   eCommerce | Consulting | Hosting
Fair Oaks, CA  95628          edl at newmediaems.com
(916) 961-0446                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (916) 961-0447 Fax
=============================================================== 



More information about the interchange-users mailing list