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

modify a xen:number output.

Discussion in 'XenForo Development Discussions' started by dvsDave, Sep 12, 2013.

  1. dvsDave

    dvsDave Well-Known Member

    {xen:number $class.variable} can I add a value to the variable... for example, {xen:number $class.variable + 22}

    What's the proper syntax for this?
  2. digitalpoint

    digitalpoint Well-Known Member

    This is what you want...

    {xen:number {xen:calc '{$class.variable} + 22'}}
    Marcus and dvsDave like this.

Share This Page