Re: integer math in a smarty template
That part works
It's just that if the difference is greater than 100 (inother words we're in the 200 series) then I want to close the <ul> and start a new one
so in pseudo code
if (idiff gt 100) </ul><ul><li>
but I diff is coming up blank - not zero - just blank
I found this
{math assign="amount_to_go" equation="max(0,49-a)" a=$cart.subtotal}
so I'm going to try a variation on that
|