Help - Search - Members - Calendar
Full Version: if statements with MTArchiveCount?
Movable Type Community Forum > Additional Resources > Tips and Tricks
btrott
We are planning on adding some generic conditional statements in a future release, but at the moment, there's no way to do this.
blovett
I have a "Read Comments" link attached to all my MT entries, and was wondering if I can suppress it until someone actually posts a comment. Is it possible to do any sort of logic with the values of template tags (like MTArchiveCount)? Something like:

CODE
unless (MTArchiveCount == 0) { write link }
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.