I like my blog entries and comments to display as list items so they can be easily styled.
However,
in the following situation:
<ul id="comments_list">
{exp:comment:entries sort="asc" limit="20"}
<li>
{comment}
<p class="author">By {name} on {comment_date format="%Y %m %d"}</p>
</li>
{/exp:comment:entries}
</ul>
everything works fine if there are comments. However, when there are no comments it results in a set of ul tags with no contents which is an XHTML invalidation.
Obviously there is a if-exists condition but this only evaluates when inside exp:comment:entries.
How can this be tested outside the UL tag in an elegant way?
