[ic] [if file....] confusion.
Aaron Hazelton
interchange-users@icdevgroup.org
Thu Aug 22 15:34:00 2002
Andrew Metcalfe
> Sent: Thursday, August 22, 2002 3:29 PM
> To: Interchange-Users@Icdevgroup.Org
> Subject: [ic] [if file....] confusion.
>
>
> 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]
>
> In each case, the if is failing, and the correct string is
> being displayed
> by the 'else'.
>
> I've set "SafeUntrap ftfile" in interchange.cfg
>
> _Am
don't you need an [/else]?
Aaron