[ic] Displaying a text message, instead of $0.00, for zero priced items?

John Matecsa interchange-users@interchange.redhat.com
Fri Apr 5 15:39:01 2002


How does one go about displaying a text message, instead of $0.00, for zero
priced items?

I tried the following code within results.html and found that the text
message P.O.A is never displayed when the item was zero priced.

<td align="center">
    [if [item-price] =~ 0]
        [item-price]
    [else]
        P.O.A.
    [/else]
    [/if]
</td>

Any suggestions about how to fix this code? Will the same thing work in say
mail_receipt?

Thanks in advance for your assistance,

John Matecsa
http://www.picassofish.com