Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how find the remainder? #21

Closed
insionng opened this issue Jul 28, 2014 · 3 comments
Closed

how find the remainder? #21

insionng opened this issue Jul 28, 2014 · 3 comments

Comments

@insionng
Copy link

I tried this, but failed.

{%if (i+1)%3==0 %}
       0
{%endif%}
@insionng insionng changed the title pongo inside, how find the remainder? how find the remainder? Jul 28, 2014
@flosch
Copy link
Owner

flosch commented Jul 28, 2014

https://docs.djangoproject.com/en/1.6/ref/templates/builtins/#divisibleby

The %-operator is not implemented yet, but I will add it.

@flosch flosch closed this as completed in 0dde08b Jul 28, 2014
@flosch
Copy link
Owner

flosch commented Jul 28, 2014

Added.

@insionng
Copy link
Author

very cool~
thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants