Template If-Statements
Pre-release
Pre-release
In this release, we added template if-statements. There are multiple ways to use an if statement:
{% if variable == "value" %}
<p>Text is shown here only if variable == "value"</p>
{% endif %}
{% if (variable == "value") %}
<p>Text is shown here only if variable == "value"</p>
{% endif %}
{% if(variable == "value") %}
<p>Text is shown here only if variable == "value"</p>
{% endif %}
We will be adding else-if and else in a later release.