Created
September 17, 2014 14:58
-
-
Save yankeyhotel/418d69c0bd0ac82109d4 to your computer and use it in GitHub Desktop.
Use Switchee to replace and easy if else statement in ExpressionEngine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:switchee variable="{variable_to_test_against}" parse="inward"} | |
{case value="''"} | |
<!-- value is empty --> | |
{/case} | |
{case default="Yes"} | |
<!-- default --> | |
{/case} | |
{/exp:switchee} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Via: http://devot-ee.com/add-ons/support/switchee/viewthread/7368#24884