hi there am quite intrested in this, sorry to hijack the thread....
how would you do this in php?
WA_eCart_IIf(([Discount] = 1),[SalePrice] ,[BasePrice])
is that the correct code with no typo's to add in the calculations formular on the calculations tab in ecart?