AboutBlog

Navigation

  • About
  • Blog
  • About
  • Blog
Niall Kennedy's weblog

MTIfNonZero: Undocumented Movable Type template tag

Publication date: August 18, 2004

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 Extensible Hypertext Markup Language (XHTML). Example:

<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.

Category:
  • Six Apart
AboutBlog

Source: https://www.niallkennedy.com/blog/2004/08/mtifnonzero-und.html

© 2026 Niall Kennedy. All rights reserved.