I have this in my template:
{exp:channel:entries
channel="profiles"
disable="categories|category_fields|member_data|pagination"
{if segment_2}entry_id="not {segment_2}"{/if}
dynamic="no"
}
{if {profession}{profession:title}{/profession} == "foo"}
<!-- display something -->
{/if}
{/exp:channel:entries}
This returns the error:
Error
You have an invalid conditional in your template. Please review your conditionals for an unclosed string, invalid operators, a missing }, or a missing {/if}.
Parser State: Invalid Condition: Not enough operands for operator ” == “.
What is wrong with my template? Is the test in my if-statement somehow causing this problem? Is there a way I can add this filter as a search in the channel entry tag?