My example custom object has a category field that contains a dropdown of 5 options - cat1,cat2,cat3,cat4, & cat5.
I am having trouble getting the if statement syntax correct so that it will only list results when the category field matches the speficied value.
{% set member = contact.email %}
{% set items = crm_objects("member_resources", "member_email=" + member, "category,notes,link") %}
<ul>
{% if items.category == "cat1" %}
{% for item in items.results %}
<li>{{ item.notes }}</li>
{% endfor %}
{% endif %}
</ul>
How do I correct the if statement so that I only see results that match the “cat1” category?
Thanks,
Terry McMillan