I am trying to compare two numbers, but I get the following error:
Could not parse the remainder: '{{hole.number}}' from '{{hole.number}}'
Here is my code:
{% if (hole.number - 1) > 0 %}
...
{% endif %}
hole.number is a positive integer, so the comparison should be valid.
This might work, but to be honest you are best doing this in your view if you can or otherwise in a template tag