• Currently 1/5
  • 1
  • 2
  • 3
  • 4
  • 5
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 sumbitted here should pertain to tips & hints regarding documentation. Your note may be removed once it's contents has be integrated into the body of the page.