Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Support for modulus operator in swig #155

Merged
merged 2 commits into from
Dec 8, 2012

Conversation

fbardelli
Copy link

If statements will now support either '%' or 'mod'

{% set foo = 4 %}
{% if foo mod 2 == 0 %}hi!{% endif %}

Prints "hi!"

{% set foo = 5 %}
{% if foo mod 2 == 0 %}hi!{% endif %}

Prints nothing

paularmstrong added a commit that referenced this pull request Dec 8, 2012
Support for modulus operator in swig
@paularmstrong paularmstrong merged commit f18b753 into paularmstrong:master Dec 8, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants