1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is there a template math function?

Discussion in 'XenForo Development Discussions' started by Jaxel, Oct 6, 2010.

  1. Jaxel

    Jaxel Well-Known Member

    I want to be able to do:
    width="$page_depth * 30px"

    Is there some sort of math function? and how do I use it?
     
  2. Mike

    Mike XenForo Developer Staff Member

    {xen:calc '{$page_depth} * 30'}px
     
    Sadik B, TheJoker, Marcus and 4 others like this.

Share This Page