[ic] [if] tag
Joachim Leidinger
interchange-users@interchange.redhat.com
Fri Aug 17 03:26:01 2001
Corey Gilmore wrote:
[...]
> > >Anybody with somewhat interesting suggestions?
> > >Cause mine are quiete dull :)
> [set item_type][loop-field type][/set]
> [if explicit][condition]$Scratch->{item_type} ne 'deliverymethod'[/condition]
>
> is one method i use. of course, you really should define a variable in
> your catalog.cfg for the name, just in case.
>
> Variable DELIV_METHOD_LABEL deliverymethod
>
> [set item_type][loop-field type][/set]
> [if explicit][condition]$Scratch->{item_type} ne __DELIV_METHOD_LABEL__[/condition]
>
> is a little cleaner ;)
>
> Now, how could I avoid setting a scratch variable, and just reference it
> directly?
Is
[if data products::type::[lopp-code] =~ /deliverymethod/i]
There is a delivery method
[else]
No delivery method available.
[/else]
[/if]
not working for you?
Joachim
--
Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
[Hans-Joachim.leidinger@bpanet.de]
Black Point Arts Internet Solutions GmbH
http://www.bpanet.de