Switch
Provides Movable Type with Switch/Case-functionality for conditional value checking.
<MTSwitch value="2">
<MTSwCase value="1">
This will NOT be output, since the values don't match
</MTSwCase>
<MTSwCase value="2">
This WILL be output, since the values match
</MTSwCase>
<MTSwDefault>
This would have been output if none of the MTSwCase statements had matched.
</MTSwdefault>
</MTSwitch>

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.