• Currently 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
IfEmpty


Allows for different options if a field is empty or not empty.

<MTIfEmpty var="EntryTitle">(untitled)</MTIfEmpty>
<$MTEntryTitle$>

or:

<MTIfNotEmpty expr="[MTEntries days='1']1[/MTEntries]">
We have fresh entries!
</MTIfNotEmpty>

Requirements

Tested with MT 3

Leave a comment

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.