[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] if-item-data statements
Joachim,
It worked thanks..just had
to make sure that pending,
confirmed and archive were
proper case.
Thanks, Greg
Greg Goble wrote:
>
> Vrs: IC 4.8
>
> I am currently using this in my
> results.html, however, I'd like
> to add a third option. My understanding
> is that [if] statements are generally
> one thing or the other, i.e., true or not
> true, etc.
>
> [if-item-data products status eq confirmed]
> print confirmed
> [else]
> print pending
> [/else]
> [/if-item-data]
>
> But reading through the documentation,
> it appears that a [elsif] should be able
> to add a third option, but it appears only
> within [if] and not [if-item-data]...
>
> or at least I can't get it to work.
>
> Ideally I'd like to see something like this,
> but in working condition ;-) my attempts have
> been unsuccessful. TIA, Greg
>
> [if-item-data products status eq confirmed]
> print Confirmed
> [elsif products status eq pending]
> print Pending
> [/elsif]
> [else]
> print Archive
> [/else]
> [/if-item-data]
Try
[tmp mystatus][item-field status][/tmp]
[if scratch mystatus eq confirmed]
print Confirmed
[elsif scratch mystatus eq pending]
print Pending
[/elsif]
[else]
print Archive
[/else]
[/if]
Joachim
--
Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
[leidinger@bpanet.de]
Black Point Arts Internet Solutions GmbH
http://www.bpanet.de
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users