I want to display entries that have a field that is the same as a field in a global variable There is a publishMonth (multiselect) and publishYear (radio buttons) field in each article. They do not correspond to an actual date. Each article is is associated with one year, or one or more months. I'd like my editor to be able to change two global variables. currentMonth (radio button), and currentYear (radio button) to change all the articles display on the webpage at once at any time she pleases. Some articles may be associated with one or more months. Articles do not get changed over at the same date and time each month, which is why it's not associated with a real month or year. The code below returns nothing.

The idea is to make it as easy as possible for my editor to "flick the switch" to the next month.

{% set dogs = craft.entries.section('news').order('articleOrder desc').limit(5) %}
{% for entry in dogs %}

    {% if entry.publishYear in currentEdition.currentYear %}

    &lt;a href="{{ entry.url }}"&gt;&lt;h2&gt;{{ entry.title }}&lt;/h2&gt;&lt;/a&gt;
    {% for image in entry.images.limit(1) %}
        &lt;img src="{{ image.getUrl('frontPageThumbnail') }}" class="main-image"&gt;
    {% endfor %}
    &lt;p&gt;{{ entry.body|striptags|slice(0,300) }}... &lt;a href="{{ entry.URL }}" class="readmore"&gt;Read more&lt;/a&gt;&lt;/p&gt;
    &lt;p&gt;{{ entry.publishYear }}&lt;/p&gt;
    &lt;ul&gt;
        {% for option in entry.publishMonth %}
            &lt;li&gt;{{ option }}&lt;/li&gt;
        {% endfor %}
    &lt;/ul&gt;

    {% endif %}

{% endfor %}
Since you've confirmed that the issue is in the if statement and I can see your comparison, I'll clarify usage and propose a solution.

The in operator, is a containment operator and it expects a scalar|primitive value on the left and an array|iterable on the right.

I am assuming that entry.publishYear is an int or a string: 2017. However, I'm not sure about currentEdition.currentYear. It seems like it's also an int or string: 2017.

If the currentEdition.currentYear is not an array or an iterable item, you should use == instead of in.

{% if entry.publishYear == currentEdition.currentYear %}

Have you tried that? Or can you try it and let me know?