Answer the question
In order to leave comments, you need to log in
How to make 2 conditions in twig?
How to make two conditions in one request in Twig template engine.
So : {% if idgame == editgame & auth == true %} fails.
Answer the question
In order to leave comments, you need to log in
Decided not to bother reading the documentation?))
twig.sensiolabs.org/doc/templates.html#logic
maybe so?
{% if idgame == editgame && auth == true %}
use "&&" instead of "&"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question