[ic] [total-cost] question

Ed LaFrance interchange-users@interchange.redhat.com
Sun Jan 6 10:57:00 2002


Quoting chad townsend <chad@hq.mycity.com>:

> 
> i have seriously tried a over 20 ways to do this, i will paste them all
> if necessary ... but could
> someone please explain to me how to say in ic html:
> 
> if ([total-cost] noformat=1 == 0) {
> show this html abc
> } else {
> show this html xyz
> }
> 
> it seems like such a simple thing.  but evey thing i tried failed.
> 

I've been doing the following since MV3 - it may not be the most compact, but 
it has never failed me:

[if type=explicit compare="[calc][total-cost noformat=1][/calc]"]
   <b>total is > 0</b>
[else]
   <b>total is = 0</b>
[/else]
[/if]

- Ed L.

===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================