Forum Discussion
DwightMunson1
3 years agoQrew Assistant Captain
{% if a.review_food_security_approved is true %}
yes
{% else %}
no
{% endif %}
------------------------------
Dwight Munson
------------------------------
yes
{% else %}
no
{% endif %}
------------------------------
Dwight Munson
------------------------------
- AmyGosz13 years agoQrew TraineeThank you Dwight. Works perfect now. I didn't even consider changing the == characters.
------------------------------
Amy Gosz
------------------------------- DwightMunson13 years agoQrew Assistant CaptainHonestly you probably could have used == or is.
I think it was barfing on the capital true.
Generally the jinja comparison operators are:
== Compares two objects for equality
!= Compares two objects for inequality
> true if the left-hand side is greater than the right-hand side
>= true if the left-hand side is greater or equal to the right-hand side
< true if the left-hand side is lower than the right-hand side
<= true if the left-hand side is lower or equal to the right-hand side
Also:
is
is not
matches
starts with
ends with
------------------------------
Dwight Munson
------------------------------- AmyGosz13 years agoQrew TraineeI think you are right on the capitalized word TRUE. I had to change that even using 'is'. Thank you again for helping out and the additional info.
------------------------------
Amy Gosz
------------------------------