<MTIfNonZero tag="MTEntryCommentCount">
<ol>
<MTComments>
<li><MTCommentAuthorIdentity> wrote something.</li>
</MTComments>
</ol>
</MTIfNonZero>
MTIfNonZero tag is currently not listed in the Movable Type template tag documentation but should be and it works.
Aug18
MTIfNonZero: Undocumented Movable Type template tag
Movable Type 3.0 introduced the MTIfNonZero template tag. If you would like to take action in your template only if a tag has a non-zero entry, use MTIfNonZero for valid XHTML.
Example:

1 Comments
Commentary on "MTIfNonZero: Undocumented Movable Type template tag":
Subscribe to new comments
Add a comment
Some comments may be placed in a moderation queue to ensure topical relevancy. You may contact author Niall Kennedy directly if you prefer to comment privately.