[ic] Re: confusion.

interchange-users@icdevgroup.org interchange-users@icdevgroup.org
Thu Aug 22 15:39:01 2002


Andrew Metcalfe writes: 

> I'm confused. 
> 
>>From the documentation:
> 
> [if file /home/user/www/images/[item-code].gif]
>     <IMG SRC="[item-code].gif">
> [/if] 
> 
> Then why doesn't the following line work? 
> 
> [if file /var/lib/interchange/catalogs/hwmpro/images/company-files/[value
> company]/logo/[value company].jpg]
>     <IMG SRC="[value company].jpg">
> [else]
>     /var/lib/interchange/catalogs/hwmpro/images/company-files/[value
> company]/logo/[value company].jpg
> [/if]

Answered a lot of times in the archives, I guess. While [item-code]
is parsed _before_ the if, [value company] isn't. 

The way to go is to use named parameters here. 

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.