Not a developer? Go to MovableType.com

Plugin and Theme Directory

Compare v1.1

By
Posted December 5, 2002, in MT Tags, Templates, Widgets.

Details

This Movable Type plugin implements a set of template tags for displaying a portion of a template conditionally, depending on the results of a comparison between values. The values compared can be literal strings or numbers, or they can be pieces of MT template code that the plugin will build and evaluate, using the result in the comparison.

MT users have developed a number of techniques in PHP and JavaScript to implement various useful conditional-display features on MT-based sites. The tags in the Compare plugin should let you accomplish many of these same tasks within your MT templates, without using PHP or JavaScript tricks. For example:


  • Display different text in the Comments link for each entry depending on how many comments have been posted

  • Use a different display format for entries by a particular author or set of authors

  • Within a category listing on a category archive page, display the current page's category differently from the rest

  • Display different text on an entry depending on what time of day it was entered ("morning," "afternoon," etc.)

These tags are intended for doing straight comparisons of equality and inequality. If you want to compare things against regular expressions (for instance, finding out whether a string contains another string), you should try Brad Choate's powerful and flexible Regex plugin. (The MTIfMatches tag in that plugin overlaps somewhat in functionality with the MTIfEqual and MTIfNotEqual tags in this one.)


Back

71 Comments

Sunil Shrestha

Sunil Shrestha on August 26, 2016, 11:56 a.m. Reply

Great Plugin. TQ. 192.168.1.1

Merlin John

Merlin John on March 28, 2017, 4:38 p.m. Reply

The tags that have explained here help the user to accomplish many same tasks within the MT templates without using PHP or JavaScript tricks. I have learned many such useful things from this blog and thank you so much for this wonderful share. for more information

sunny

sunny on May 30, 2017, 6:24 p.m. Reply

This that generate for the locker codes game is very fast play.

monika77

monika77 on October 15, 2017, 2:08 p.m. Reply

WE SAY: BAP is a simulation of USAF Pilot&’s reaction test.http://downloadgoodthings.top Links to Twitter, Facebook and Basil Works website on title page.

jackson1569999

jackson1569999 on June 27, 2018, 8:19 a.m. Reply

this is very informative post thanks for sharing Animeflv

jackson1569999

jackson1569999 on June 27, 2018, 8:19 a.m. Reply

Animeflv

ritariya

ritariya on July 20, 2018, 8:15 a.m. Reply

It’s a new information you have shared with us. Accidentally I have seen the post and I found it very informative. But when i was gone through your post I did not get any instant information about the plugin. Actually is this plugin used by anyone in their normal life? I wanted to know more about it. Update your post. http://myparistours.com/paris-city-tours/paris-sightseeing-tours/

hendry

hendry on September 7, 2018, 11:30 a.m. Reply

The company provides the Movable Type social publishing platform and a wide range of services dedicated to helping bloggers thrive in today’s social media landscape. Six Apart has its global headquarters in Tokyo with several solution partners in North America, Europe, and Asia. Get More Info

leoneo

leoneo on October 1, 2018, 9:52 a.m. Reply

This part of specifics is very treasured to me. I would like to spot extra points about this plugin. Hope you will provide it organized with the steps to install it. Big Friday Outfits

pioneerseo

pioneerseo on October 21, 2018, 9:10 a.m. Reply

This is a personal travel and food blog. I post relatable content and write in spoken words in order to provide a humorous tone that most travel and food blogs do not have. Louisville

pioneerseo

pioneerseo on October 21, 2018, 1:39 p.m. Reply

It’s late discovering this demonstration. At any rate, it’s a thing to be acquainted with that there are such occasions exist. I concur with your Blog and I will have returned to examine it more later on so please keep up your demonstration. Se mer information om bloggen

pioneerseo

pioneerseo on October 22, 2018, 6:42 a.m. Reply

It’s late discovering this demonstration. At any rate, it’s a thing to be acquainted with that there are such occasions exist. I concur with your Blog and I will have returned to examine it more later on so please keep up your demonstration. dental plans

pioneerseo

pioneerseo on October 23, 2018, 7:16 a.m. Reply

Exceptionally useful post ! There is a considerable measure of data here that can enable any business to begin with a fruitful long range informal communication campaign ! Vidare in till denna sajten nu

pioneerseo

pioneerseo on October 24, 2018, 6:28 a.m. Reply

This is a great post I seen because of offer it. It is truly what I needed to see seek in future you will proceed after sharing such a magnificent post. Vidare till webbplatsen nu

pioneerseo

pioneerseo on October 24, 2018, 1:10 p.m. Reply

I need to express profound gratitude to you. I have bookmark your site for future updates. asset management llc

pioneerseo

pioneerseo on October 24, 2018, 2:52 p.m. Reply

I need you to thank for your season of this great read!!! I definately appreciate each and every piece of it and I have you bookmarked to look at new stuff of your blog an unquestionable requirement read blog! Vidare till bloggen nu

pioneerseo

pioneerseo on October 25, 2018, 6:53 a.m. Reply

I’m eager to reveal this page. I have to thank you for ones time for this especially awesome read!! I unquestionably extremely enjoyed all aspects of it and I likewise have you spared to fav to take a gander at new data in your site. coursework writing services uk

pioneerseo

pioneerseo on October 26, 2018, 10:05 a.m. Reply

Genuinely esteem this great post that you have suited us.Great site and an unfathomable subject additionally I really get astounded to scrutinize this. Its superior to normal.. anti skid socks for toddlers

pioneerseo

pioneerseo on October 26, 2018, 2:32 p.m. Reply

I need to express profound gratitude to you. I have bookmark your site for future updates. Offer Financing to Customers

pioneerseo

pioneerseo on October 26, 2018, 2:53 p.m. Reply

Great info! I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have. No Credit Check Auto Repair Financing

pioneerseo

pioneerseo on October 26, 2018, 3:24 p.m. Reply

A commitment of gratefulness is all together for such a phenomenal post and the audit, I am completely pushed! Keep stuff like this coming. bonne voyante gratuite

pioneerseo

pioneerseo on October 27, 2018, 6:42 a.m. Reply

I need to express profound gratitude to you. I have bookmark your site for future updates. varmepumpe

pioneerseo

pioneerseo on October 31, 2018, 7:20 a.m. Reply

The author is red hot about acquiring wooden furniture on the web and his examination about best wooden furniture has comprehended the plan of this article. dove hunting in argentina

pioneerseo

pioneerseo on November 1, 2018, 6:43 a.m. Reply

Well we extremely get a kick out of the chance to visit this site, numerous valuable data we can arrive. Wordpress hemsidan

pioneerseo

pioneerseo on November 8, 2018, 2:15 p.m. Reply

I am genuinely thankful to the holder of this site page who has shared this dazzling fragment at this place fossil watches on sale

linkerseo

linkerseo on November 8, 2018, 3:04 p.m. Reply

Awesome to wind up setting off to your weblog again, it has been quite a while for me. Enjoyably this article i’ve been sat tight for so long. I will require this post to indicate my undertaking in the school, and it has indistinguishable subject together with your audit. Much valued, awesome offer. hugo boss watches cape town

pioneerseo

pioneerseo on November 11, 2018, 4:26 a.m. Reply

Well we extremely get a kick out of the chance to visit this site, numerous valuable data we can arrive. media sell

pioneerseo

pioneerseo on November 11, 2018, 7:50 a.m. Reply

This is a great article, Given such a great amount of information in it, These kind of articles keeps the clients enthusiasm for the site, and continue sharing more … good fortunes. sell your videos

pioneerseo

pioneerseo on November 11, 2018, 11:33 a.m. Reply

Truly value this magnificent post that you have accommodated us.Great site and an incredible subject also I truly get astonished to peruse this. Its better than average. Appliance Repair

pioneerseo

pioneerseo on November 13, 2018, 9:06 a.m. Reply

The website loading speed is amazing. It kind of feels that you’re doing any distinctive trick. Moreover, The contents are masterpiece. you have done a fantastic activity on this subject! Klicka vidare till sajten

pioneerseo

pioneerseo on November 16, 2018, 9:59 a.m. Reply

It should be seen that while asking for papers accessible to be acquired at paper creating organization, you can get unkind perspective. If you feel that the specialist is attempting to cheat you, don’t buy inquire about task from it. Mer information

pioneerseo

pioneerseo on November 21, 2018, 9:30 a.m. Reply

Two full thumbs up for this magneficent article of yours. I’ve really refreshing examining this article today and I figure this might be a champion among other article that I’ve scrutinized yet. If its all the same to you keep this work proceeding in a comparative quality. Mer info

pioneerseo

pioneerseo on November 22, 2018, 12:20 p.m. Reply

Two full thumbs up for this magneficent article of yours. I’ve really refreshing examining this article today and I figure this might be a champion among other article that I’ve scrutinized yet. If its all the same to you keep this work proceeding in a comparative quality. voyance gratuite immediate en ligne

pioneerseo

pioneerseo on November 23, 2018, 3:52 p.m. Reply

A debt of gratitude is in order for the instructive and accommodating post, clearly in your blog everything is great.. gdwbet

linkerseo

linkerseo on November 25, 2018, 9:22 a.m. Reply

Hi! This is my first visit to your blog! We are a team of volunteers and new initiatives in the same niche. Blog gave us useful information to work. You have done an amazing job! Pradhan Mantri Awas

pioneerseo

pioneerseo on November 26, 2018, 2:00 p.m. Reply

Two full thumbs up for this magneficent article of yours. I’ve really refreshing examining this article today and I figure this might be a champion among other article that I’ve scrutinized yet. If its all the same to you keep this work proceeding in a comparative quality. Klicka vidare till sidan

pioneerseo

pioneerseo on November 27, 2018, 8:10 a.m. Reply

Two full thumbs up for this magneficent article of yours. I’ve truly delighted in perusing this article today and I figure this may be outstanding amongst other article that I’ve perused yet. If it’s not too much trouble keep this work going ahead in a similar quality. Vidare till wordpress bloggen nu

pioneerseo

pioneerseo on November 28, 2018, 8:42 a.m. Reply

Two full thumbs up for this magneficent article of yours. I’ve truly delighted in perusing this article today and I figure this may be outstanding amongst other article that I’ve perused yet. If it’s not too much trouble keep this work going ahead in a similar quality. Vidare till wordpress bloggen nu

pioneerseo

pioneerseo on December 4, 2018, 8:46 a.m. Reply

Well we extremely get a kick out of the chance to visit this site, numerous valuable data we can arrive. Wordpress hemsidan

pioneerseo

pioneerseo on December 5, 2018, 8:37 a.m. Reply

I truly appreciate basically perusing the majority of your weblogs. Just needed to advise you that you have individuals like me who value your work. Certainly an awesome post. Caps off to you! The data that you have given is exceptionally useful. Mer information

pioneerseo

pioneerseo on December 6, 2018, 12:33 p.m. Reply

Well we extremely get a kick out of the chance to visit this site, numerous valuable data we can arrive. check out this site

pioneerseo

pioneerseo on December 9, 2018, 11:28 a.m. Reply

Our focus, experience and success for Executive Search and Staffing within BIM (Building Information Modeling), VDC (Virtual Design & Construction) and VR (Virtual Reality) gives us a clear advantage over others who merely dabble in our world. A large number architectural, engineering and construction firms have used us to locate and secure the best talent available!. Building Information Modeling

pioneerseo

pioneerseo on December 14, 2018, 8:45 a.m. Reply

I truly appreciate basically perusing the majority of your weblogs. Just needed to advise you that you have individuals like me who value your work. Certainly an awesome post. Caps off to you! The data that you have given is exceptionally useful. beni ourain

pioneerseo

pioneerseo on December 14, 2018, 9:46 a.m. Reply

I expect you to thank for your time of this phenomenal read!!! I definately welcome each and every piece of it and I have you bookmarked to look at new stuff of your blog a specific essential read blog! actualité bernard bensaid

pioneerseo

pioneerseo on December 14, 2018, 10:02 a.m. Reply

The essayist is searing about acquiring wooden furniture on the web and his examination about best wooden furniture has comprehended the plan of this article. malta child daycare centre

pioneerseo

pioneerseo on December 16, 2018, 3:22 p.m. Reply

I am truly getting a charge out of perusing your elegantly composed articles. It would seem that you spend a considerable measure of exertion and time on your blog. I have bookmarked it and I am anticipating perusing new articles. Keep doing awesome. Glaspokale kaufen

Sierra

Sierra on December 18, 2018, 1:19 a.m. Reply

Such an excellent article. Very informative. Kaitlin

pioneerseo

pioneerseo on December 18, 2018, 12:46 p.m. Reply

Well we extremely get a kick out of the chance to visit this site, numerous valuable data we can arrive. iphone x case

pioneerseo

pioneerseo on December 22, 2018, 11:03 a.m. Reply

I truly appreciate basically perusing the majority of your weblogs. Just needed to advise you that you have individuals like me who value your work. Certainly an awesome post. Caps off to you! The data that you have given is exceptionally useful. apostle joshua selman

pioneerseo

pioneerseo on December 23, 2018, 2:54 p.m. Reply

Well we extremely get a kick out of the chance to visit this site, numerous valuable data we can arrive. siteground grow big review

pioneerseo

pioneerseo on December 24, 2018, 4:59 p.m. Reply

Hello there to everyone, here everybody is sharing such learning, so it’s critical to see this website, and I used to visit this blog day by day sell my house fast

pioneerseo

pioneerseo on December 28, 2018, 8:35 a.m. Reply

Well we extremely get a kick out of the chance to visit this site, numerous valuable data we can arrive. รับแปลเอกสารภาษา

pioneerseo

pioneerseo on January 1, 2019, 10:12 a.m. Reply

The author is red hot about acquiring wooden furniture on the web and his examination about best wooden furniture has comprehended the plan of this article. voyance numero

codesjunction

codesjunction on January 2, 2019, 9:33 a.m. Reply

hello dear frend…

pioneerseo

pioneerseo on January 3, 2019, 9:15 a.m. Reply

Pet Express is Sri Lanka’s leading IATA & IPATA certified Pet Travel specialist & worldwide service provider for relocating pets all around the world We are a professional Pet Relocation agent based in Colombo who can offer you personalized door-to-door international pet transport services in the safest and the most comfortable way. Pet Express can be your one-stop international pet travel agent for your pets moving to / from Sri Lanka. We at Pet Express, always plan your pet’s relocation process carefully and meticulously. Our pet relocation specialists have helped hundreds of pet owners to relocate their beloved pets to reach their new homes. Pet Express has unsurpassed experience in shipping pets to / from Sri Lanka, in to many different countries, and our specialist team will ensure you, that all of your Pet’s international travel requirements are met accordingly and your Pet’s journey will be planned smoothly and stress-free. Pet Travel

Mike Rooney

Mike Rooney on January 7, 2019, 1:38 p.m. Reply

The blog topic is very informative and interesting for readers and i also really enjoyed it. Movie Leather Jackets

pioneerseo

pioneerseo on January 7, 2019, 2:13 p.m. Reply

Properbuz is a free global property marketplace and a social network for the real estate industry. Search millions of for-sale and rental properties worldwide. how much house can i afford

pioneerseo

pioneerseo on January 9, 2019, 9:07 a.m. Reply

Well we extremely get a kick out of the chance to visit this site, numerous valuable data we can arrive. Yeh Rishta Kya Kehlata Hai 

pioneerseo

pioneerseo on January 11, 2019, 9:25 a.m. Reply

Well we extremely get a kick out of the chance to visit this site, numerous valuable data we can arrive. roofing services bromsgrove

pioneerseo

pioneerseo on January 11, 2019, 2:46 p.m. Reply

Customary visits recorded here are the most straightforward technique to value your vitality, which is the reason why I am heading off to the site regular, hunting down new, intriguing data. Many, bless your heart! best pc games

pioneerseo

pioneerseo on January 24, 2019, 10:56 a.m. Reply

police and tactical gear and more as you can see on the site. I am an online store so I can sale my products at a better price since I do not have the overhead of a physical store. It is a Veteran Owned and operated store. hunting supplies

pioneerseo

pioneerseo on January 31, 2019, 6:11 p.m. Reply

Extremely decent blog and articles. I am realy extremely glad to visit your blog. Presently I am discovered which I really need. I check your blog regular and attempt to take in something from your blog. Much obliged to you and sitting tight for your new post. registration of foreign company in Nigeria

seomaster

seomaster on February 8, 2019, 11:14 a.m. Reply

Find the best essays on is my friend’s profile page. Play Card Game Online at Games.lol

Richard33455

Richard33455 on February 27, 2019, 11:06 a.m. Reply

THANK YOU. https://www.vidmate.software/

goalken

goalken on March 15, 2019, 3:53 a.m. Reply

The article is very detailed and easy to understand, I also want to do things like you, but don’t have time to write temple run 2

goalken

goalken on March 15, 2019, 8:25 a.m. Reply

The eagle is beautiful, no one will kill them, they really make life very good slither io

Jackson Maine Jacket for sale online

Jackson Maine Jacket for sale online on March 15, 2019, 3:22 p.m. Reply

I love the style of your writing articles. It just amazing. The blog post is very connective and attractive. Jackson Maine Jacket for sale online All the information I found in post is very useful.

Jackson Maine Jacket for sale online

Jackson Maine Jacket for sale online on March 15, 2019, 3:23 p.m. Reply

Very Interesting,your article made a huge impact on my thinking.As you mentioned that good sewing skills makes a huge difference,I never think about that before.keep it up,you are doing great..buy Jackson Maine Jacket

goalken

goalken on March 27, 2019, 2:49 p.m. Reply

Thank you very much for these great cake recipes, I have learned a lot from your web blog run 3

Leave a Comment