XF 2.2 Template Calculations

thenashy

Active member
I can't find any documentation, and the few searches haven't really helped.

How would I go about calculating the following in a template?

({$something} + {$something1}) / {$something}

? I can see it would have been with xen:calc in v1, but can't find how to achieve this in V2


Edit: Nevermind. Worked it out, just missing a couple of curly brackets.

Code:
{{ ({$something} + {$something1}) / {$something} }}
 
Last edited:
Back
Top Bottom