[ic] problems with the [if] Statement

Stefan Hornburg Racke interchange-users@interchange.redhat.com
Mon Oct 29 04:23:01 2001


Jonas Hoffmann <ruby@joelh.de> writes:

> Hi !
> 
> I have problems with the if Statement.
> 
> I have some products in the products.txt with some empty fields like this :
> sku     description     price   image   category        display beschreibung  
>   einheit saeure  restzucker   alkohol jahrgang        auszeichnung    lage
> 36      Rondo Tafelwein trocken 0,75 Ltr.       11.00           Rotwein  
> 
> Now i want to let some fields empty in my flypage if there are no values in 
> the products table, here is what i try but it doesnt work :(
> 
> 
> [if item-restzucker eq ""]
> 	<td  class="TabHeadEinzel">[item-field restzucker] g/Ltr.</td>
> [/if]

Try:
[if-item-field restzucker]
<td  class="TabHeadEinzel">[item-field restzucker] g/Ltr.</td>
[/if-item-field]

which is very well documented.

Ciao
        Racke

-- 
Racke happily hacks Interchange and maintains Debian packages like Courier.

For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)