I want to write a section of my email to display a sentence based on the value of a custom property.
Here’s an example:The value of Grown Tomatoes Before? is:
{% if person|lookup:'Grown Tomatoes Before?' == 'Yes' %}
Yes, they have.
{% elsif person|lookup:'Grown Tomatoes Before?' == 'No' %}
No, they have not.
{% else %}
Unknown value.
{% endif %
But, this doesn’t seem to work.