Not a developer? Go to



A container tag used within If and Unless blocks to output the alternate case.

This tag supports all of the attributes and logical operators available in the If tag and can be used multiple times to test for different scenarios.


Simple if-else use:

<mt:If name="fruit">
    'fruit' is assigned
    'fruit' is not assigned

Else can also be used to test for multiple values:

<mt:If name="fruit" eq="apple">
    It's an apple!
<mt:Else name="apple" eq="banana">
    It's a banana!
    It's not an apple or banana, but it is a fruit!

Leave a Comment