Skip to content

Template If-Statements

Pre-release
Pre-release
Compare
Choose a tag to compare
@CMEONE CMEONE released this 12 Mar 05:57
· 24 commits to main since this 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.