<mt:IfNonEmpty>

A conditional tag used to test whether a template variable or tag are non-empty. This tag is considered deprecated, in favor of the If tag.

Attributes:

  • tag

    A tag which is evaluated and tested for non-emptiness.

  • name or var

    A variable whose contents are tested for non-emptiness.

This page was last updated on 2008-02-22, 11:52.  

2 Notes

Most of the examples aren't working on this page. The HTML source code needs to be revised. In particular, in several places the string

<pre>`<

appears in the HTML source code; each such string should be replaced with

<pre>`&lt;

in the the HTML source code. Then the examples will display correctly in a web browser. Also, the ` character seems to serve no purpose; these probably should be deleted from the HTML source code.

The code example after "Can become..." should be fixed to strip the errant "IfNonEmpty" at the end:

<mt:If tag="EntryTitle">

<h2><$MTEntryTitle$></h2>

</mt:If>

Leave a note

Have a question, please use the MT Forums. Notes sumbitted here should pertain to tips & hints regarding documentation. Your note may be removed once it's contents has be integrated into the body of the page.