I have the following code in a template:
segment is: {segment_3} <br />
category is: {category_url_title}<br />
{if {segment_3} == {category_url_title}}
submenu goes here
{/if}
It gives the following output for categories that do not match the URL:
segment is: evaporated-apples
category is: frozen-apples
submenu goes here
If I compare to a string literal, e.g., {segment_3} == "bacon"
, the conditional returns false. Why does comparing two variables that contain different strings return true?