Answers for "twig shorthand if true false"

PHP
1

shorthand if twig

{{ variable ? 'yes' : 'no' }}
Posted by: Guest on May-16-2020
0

twig true false check

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

Browse Popular Code Answers by Language