If Then and Else Example

In this example, the if statement has a then part and an else part. If the expression is true, the then part is executed, otherwise the else part is executed.

Smartsite SXML CopyCode image Copy Code
<se:if expression="1==0">
    <se:then>
        This is so true.
    </se:then>
    <se:else>
        It's just not true!
    </se:else>
</se:if>
Example Result CopyCode image Copy Code
It's just not true!