[ic] if-loop problem

Chen Naor interchange-users@icdevgroup.org
Tue Aug 6 06:17:02 2002


Hi Stefan,

It's working as you suggested

Thanks

Chen
----- Original Message -----
From: "Stefan Hornburg (Racke)" <racke@linuxia.de>
To: <interchange-users@icdevgroup.org>
Sent: Tuesday, August 06, 2002 9:48 AM
Subject: Re: [ic] if-loop problem


> "Chen Naor" <chen@lilux.co.il> writes:
>
> > Hi,
> >
> > using IC 4.8.3
> >
> > I'm trying to do an if statement inside of a loop list tag, I looked in
the
> > archives but could not solve this.
> >
> > I tried all of these statement and didn't got any results.
> >
> > I checked and the [value birth_day] is exist.
> >
> > Any suggestions?
> >
> > Thanks
> >
> > Chen
> >
> >
> >     [loop list="01..31" ranges=1]
> >
> >                         <OPTION VALUE="[loop-code]"
> >                                 [if [loop-pos 0] eq [value
> > birth_day]]SELECTED[/if]
> >                                 [if-loop-pos 0 eq '[value birth_day]']
> > SELECTED [/if-loop-pos]
> >                                 [if-loop-param code eq [value
birth_day]]
> > SELECTED [/if-loop-param]
> >                                 [if [loop-code] eq '[value birth_day]']
> > SELECTED [/if]
> >                             >[loop-code]</OPTION>
> >                            [/loop]
>
> [if value birth_day eq [loop-code]]
>
> is the right solution, because the [loop-...] stuff is parsed first.
>
> Ciao
>         Racke
>
> --
> Prolific Interchange Consulting (Excellent German Quality !).
> Take a look at Materialboerse (http://www.materialboerse.de/), WITT
> (http://www.witt-weiden.de/), Boxmover (http://shop.boxmover.ch/) or
> Passionshop (http://www.passionshop.com/racke). Need a shop ? Contact us.
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>