I want to use {% if %}
in a node.html.twig, but it doesn't work.
I am using this code.
{% if content.field_number == 0 %}
zero
{% else %}
one
{% endif %}
It always print one.
The following code always print zero.
{% if content.field_number %}
zero
{% else %}
one
{% endif %}
What code should I use to zero when the field contains zero?