[ic] if-loop problem

Stefan Hornburg Racke interchange-users@icdevgroup.org
Tue Aug 6 03:49:03 2002


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