[ic] Valid ITL?

Grant listbox at email.com
Fri Oct 31 13:22:36 EST 2003


> > > On Fri, 31 Oct 2003 11:24:05 -0800
> > > "Grant" <listbox at email.com> wrote:
> > >
> > > > Could someone tell me if the following is valid ITL inside 
> of a loop?
> > > > Usually I test this type of thing in the Test Code section of
> > > the UI, but I
> > > > think this would be difficult to test.
> > > >
> > > > [if-loop-field date < [time adjust='-[calc] ([scratch
> > > delete_records_days] *
> > > > 24) + [loop-field duration] [/calc]']%Y%m%d%H%M%S[/time]]
> > > > 	[perl]
> > > > 		$Db{ebay_listed}->delete_record("$Tag->loop-code");
> > > > 		undef;
> > > > 	[/perl]
> > > > [/if-loop-field]
> > >
> > > This isn't invalid ITL and is probably hard to turn into it.
> > > Use embedded Perl / [loop-exec].
> > 
> > I think the above was probably a typo, but I've got to 
> double-check.  Is the
> > code I wrote valid ITL?
> 
> No, not all - the if- will not work and "$Tag->loop-code" will
> not execute the loop-code tag. Your ITL hasn't improved lately.

Awwww man, I guess not.  How can [loop-code] be executed in Perl?

- Grant

> 
> Ciao
> 	Racke


More information about the interchange-users mailing list