F
F
Fortoo2020-12-17 13:54:43
Twig
Fortoo, 2020-12-17 13:54:43

How to make condition in twig "not equal"?

I did not find an answer to this question on the net.
Or rather, there are some answers like "not" or "not in", by the way, I also don't understand why "in".
But !== 'string or number' doesn't work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2020-12-17
@Fortoo

show the code and what data is coming into it.
Twig calmly compares by != , just like puff itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question