IF-ELSE Statement¶
You can use the IF-ELSE statement to display the specified block of HTML code if CONDITION is true* and display different block of HTML code if CONDITION is false :
<!--{if CONDITION }-->
HTML CODE 1
<!--{else}-->
HTML CODE 2
<!--{/if}-->
Note
if and else should be written in lowercase letters. Using uppercase letters (IF, ELSE) will result in error.
You can add condition code for easy editing automatically by clicking the button on the Code Editor toolbar
Usage Example¶
Use the link below to see a sample situation where IF-ELSE statement can be used.
Example 1:Using Specific Blocks of HTML Code Depending on Conditions
Shows how display different blocks of HTML code depending on the circumstances.