I want to know whether a comment is written by the person who wrote the entry to which it belongs, or by someone else. So, I use the MX Jumper plugin and the channel:entry to store the entries author in a new variable, {author_post}. Later, in the comment:entries tag, I want to compare that variable (author_post) with the author variable that refers to the author of the comment.
That’s where the trouble begins. The variables have the expected content, but the conditional is not working as expected. For instance, this code, coming after the channel:entries tag
{exp:comment:entries sort="asc"}
{author} - {author_post} are {if author_post != author }not {/if} the same!
{/exp:comment:entries}leads to this output:
Max Boor - Max Boor are not the same!Am I messing up the syntax for the conditional?