tags:

views:

791

answers:

1

I'm trying to plus and multiply three values in my template file but smarty is messing with me

{assign var="x" value="`$smarty.get.pageID * $perPage`"}
{$x + $smarty.section.co.index_next}

How can I do that?!

A: 

sorry that was a silly question i solve it like this :

{if $smarty.get.pageID ne 1 } 
                {assign var="x" value=$smarty.get.pageID}

                {math equation="(( x * y ) + z )" x=$x y=$perPage z=$smarty.section.co.index_next}

            {else}

                {$smarty.section.co.index_next}

            {/if}
mehdi