How do you set an "If" option on an entry that includes "contains" I am trying to set an if statment that will show a li if there is only one entry displaying. The issue I am having is that this entry is put into two different places via checking if it contains a checkbox.
I can only seem to managed to get it to display all the time or not at all

The code I have at the moment is this
    {% if entry.ENTRYNAME.contains('CHECKBOX OPTION') == 0 %} &lt;li&gt;CONTENT&lt;/li&gt; {% endif %}

But that does not seem to work.
I am using the Check box contains option else where and it works fine. It's  just the value check that I cannot seem to get to work. I've also tried adding both .length and |length but neither of those seem to work.
OKay so the solution I found is this. It was much more complicated than I wanted it to be but it works.

{% set VARIABLE = 0 %}
{% for entry in craft.entries.section('ENTRY') %}
    {% if entry.FIELDNAME.contains('CHECKBOX OPTION') %}
        {% set VARIABLE = VARIABLE + 1 %}
        &lt;li&gt;CONTENT&lt;/li&gt;
    {% endif %}
{% endfor %}
{% if VARIABLE &lt;= 1 %}
    &lt;li&gt;CONTENT&lt;/li&gt;
{% endif %}