Conditional

The conditional statement can be used to render a section based on a specific condition.

Syntax

<? expression ?>

Example

<body>
    <!-- Body content -->
    <? Random(0, 9) > 5
        <p>The random number is greater than 5.</p>
    ?>
    <!-- Body content -->
    <? [DesignTemplate.ShowFooter]
        <footer>...</footer>
    ?>
    <!-- Body content -->
</body>

Last updated

Was this helpful?