Latest EE
Using this code only the contents of the if:else is returned, even when the last_comment_date is greater than last_entry_date. Wonder if you could please try it your end please. Am I doing something wrong?
{exp:stats}
{if last_comment_date > last_entry_date}
{!-- Comment is more recent --}
Comment
{if:else}
{!-- Entry is more recent --}
Entry
{/if}
{/exp:stats}
More confusing is that this code outputs nothing at all.
{exp:stats}
{if last_comment_date > last_entry_date}
{!-- Comment is more recent --}
Comment
{/if}
{if last_entry_date > last_comment_date}
{!-- Entry is more recent --}
Entry
{/if}
{/exp:stats}
My test templates had each of these examples on and no other code whatsoever.