We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Template {% if a %} 1 {% else %} 0 {% endif %}
{% if a %} 1 {% else %} 0 {% endif %}
when a is a float number between 0 and 1, the result will be 0.
jinjava
jinja2
The text was updated successfully, but these errors were encountered:
This has already been fixed with #857. Please ensure you're on Jinjava 2.7.0+
String result = new Jinjava() .render("{% if a %}1{% else %}0{% endif %}", ImmutableMap.of("a", 0.3)); assertThat(result).isEqualTo("1");
Sorry, something went wrong.
No branches or pull requests
Template
{% if a %} 1 {% else %} 0 {% endif %}
when a is a float number between 0 and 1, the result will be 0.
jinjava
jinja2
The text was updated successfully, but these errors were encountered: