Switchee is a free add-on which provides switch/case control logic in your templates.

Switchee is a free add-on which provides switch/case control logic in your templates.

From the website:

With EEs if/else advanced conditionals, each condition is parsed before being removed at the end of the template parsing process. This means if you wrap if/else tags around lots of other tags then your template will be running many unnecessary queries and functions.

Using Switchee instead you can ensure that unmatched conditions are removed from the template before they can be parsed. This can make your template significantly more efficient and your pages will render more quickly. Switchee allows you to use regular expressions to perform advanced matching on case conditions. Like PHPs switch/case, Switchee supports a default value.

For more information, or to download the add-on visit Devot:ee.