Homepage
  1. Templates
  2. @if directive

@if directives

@if directives can conditionally render content. You can provide it an expression, and it will determine whether to render the content inside.

@‎if(1 greater than 2)
    <p>I will not be rendered</p>
@‎endif