View Single Post
  #3  
Old 05-08-2014, 06:59 AM
 
DBK Web Builder DBK Web Builder is offline
 

Advanced Member
  
Join Date: Apr 2014
Location: NJ
Posts: 67
 

Default 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
__________________
4.6.2 and 4.6.3
http://www.DBKWebBuilder.com
Reply With Quote