[ic] if-item-data statements

Greg Goble interchange-users@interchange.redhat.com
Wed Apr 3 01:24:01 2002


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]