[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] if problem
Andreas Kotowicz wrote:
>
> Hi list,
>
> i have following code:
>
> [loop
> prefix=cat
> search="
> fi=cat.txt
> tf=sort
> un=yes
> sf=area
> se=01
> "]
>
> [if-cat-data cat url]
> [cat-data cat url]
> [else]
> [cat-data cat name]
> [/else]
> [/if-cat-data]
>
> this works fine.
>
> but if i want to check if another field may have some entry, if fails:
>
> [if-cat data cat url]
> [cat-data cat url]
> [elsif-cat data cat dir_link]
> ..
> [/elsif-cat-data]
> [else]
> [/else]
>
> this doesn't work.
>
> changing this to:
>
> [if cat data cat url]
> ...
> [elsif cat-data cat dir_link]
> ..
> [/elsif]
> [else]
> ..
> [/else]
>
> ignores my elsif again. so how can i check in specific fields if they
> have an entry?
>
> andreas
Try
[tmp caturl][cat-data cat url][/tmp]
[tmp catlink][cat-data cat dir_link][/tmp]
[if scratch caturl]
[scratch caturl]
[elsif scratch catlink]
..
[/elsif]
[else]
M*st!
[/else]
[/if]
Joachim
--
Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
[leidinger@bpanet.de]
Black Point Arts Internet Solutions GmbH
http://www.bpanet.de
- References:
- [ic] if problem
- From: interchange-users@interchange.redhat.com (Andreas Kotowicz)