Vector: if

The {{ if }} vector is a simple way to put conditional content into your website. If the condition in the vector evaluates to true, then the vector's body will be rendered. Otherwise it will be skipped.

The following values all evaluate to false:
  • false (or FALSE or False or ...)
  • 0 (the number 0)
  • Empty string

Everything else evaluates to true.


{{ if: true }} This will be displayed! {{ endif }}
{{ if: false }} This will NOT be displayed! {{ endif }}