Answers for "condition in twig"

PHP
0

twig if statement

{% if online == false %}
    <p>Our website is in maintenance mode. Please, come back later.</p>
{% endif %}
Posted by: Guest on March-19-2020
0

twig and conditional operator

{% if 1 > 2 and 3 == 3 %}
{% endif %}
Posted by: Guest on June-25-2021

Browse Popular Code Answers by Language