For loop, if statement, then limit I've created two global variables which my content creator is going to use to turn off a bunch of articles and turn on a bunch more which a slight change in the Global.  I have a page where there is a limit of 5 of these articles.

{% set entries = craft.entries.section('news').order('articleOrder desc').limit(5).find() %}

{% for entry in entries if entry.currentYear2 == currentEdition.currentYear2 and currentEdition.currentMonth2 in entry.currentMonth2 %}
    &lt;h2&gt;{{ entry.title }}&lt;/h2&gt;          
{% endfor %}


The problem with this is that the conditional only gets 5 entries to compare, and not the entire bunch. I want to first run an if statement on all the entries, then let me do a for loop with a .limit(5). I am not sure how to go about this. A conditional combined with a for loop in the same statement did not work either.
Entirely possible I'm misunderstanding what you're looking for, but I think something like this should do it:

{% set entries = craft.entries.section('news').order('articleOrder desc').find() %}
{% set matchCount = 0 %}

{% for entry in entries %}
    {% if entry.currentYear2 == currentEdition.currentYear2 and currentEdition.currentMonth2 in entry.currentMonth2 and matchCount &lt;= 5 %}
        {% set matchCount = matchCount + 1 %}
        &lt;h2&gt;{{ entry.title }}&lt;/h2&gt;
    {% endif %}          
{% endfor %}