[ic] Valid ITL?

Stefan Hornburg racke at linuxia.de
Fri Oct 31 22:06:12 EST 2003


On Fri, 31 Oct 2003 12:02:28 -0800
"Grant" <listbox at email.com> wrote:

> 
> > 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.

Ciao
	Racke

-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team



More information about the interchange-users mailing list