[ic] [loop-next] question

Xavier GILLET interchange-users@icdevgroup.org
Mon May 19 11:28:00 2003


----- Original Message -----
From: "Stefan Hornburg" <racke@linuxia.de>
To: <interchange-users@icdevgroup.org>
Sent: Monday, May 19, 2003 5:09 PM
Subject: Re: [ic] [loop-next] question


> On Mon, 19 May 2003 16:52:43 +0200
> "Xavier GILLET" <xavier.gillet.perso@wanadoo.fr> wrote:
>
> > Same problem (no result) with :
> > [loop-next][if scratch tt ne 'En ligne']0[else]1[/else][/if][/loop-next]
> >
> > Strange because [if scratch tt ne 'En ligne']0[else]1[/else][/if] in the
> > loop without the [loop-next] tag return
> > 1
> > 1
> > 0
> > 1
> > 1
> >
> > So this tag [loop-next][if scratch tt ne 'En
> > ligne']0[else]1[/else][/if][/loop-next] in the loop is supposed to
remove 1
> > result and display 4.
> > I'm missing something... but I do not see what....
>
> Read my message more thoroughly. [loop-next] is evaluated _before_
> your [seti]/[tmp] statements.
>

OK.
I  learned something this afternoon !

[loop-next]
[seti table][loop-data ma_selection dbase][/seti]
[seti annonce_ref][loop-data ma_selection annonce_ref][/seti]
[tmp tt][data table="[scratch table]" column=actual_status key="[scratch
annonce_ref]"][/tmp]
[if scratch tt ne 'En ligne']1[else]0[/else][/if]
[/loop-next]

Is working fine.

Thanks



> Ciao
> Racke
>
>
>
> --
> LinuXia Systems => http://www.linuxia.de/
> Expert Interchange Consulting and System Administration
> ICDEVGROUP => http://www.icdevgroup.org/
> Interchange Development Team
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>