How can i output my content in pairs? how can i output my content in pairs?

like this:

div.row &gt;   entry 1 + entry 2
div.row &gt;   entry 3 + entry 4
div.row &gt;   entry 5 + entry 6


so far i have the following

{% for entry in craft.entries.find({section:'events' ,level: 2 }) %}
&lt;div class="row"&gt;

    {% if loop.index0 is divisible by(2) %}
    (entry odd output here)
    {% endif %}

    {% if loop.index is divisible by(2) %}
    (entry even output here)
    {% endif %}

&lt;/div&gt;
{% endfor %}


but this just gives me a new row for each entry.
What's the best approach?
I would go with Twigs batch filter, which exactly solves your problem.

Here an an adapted example:

{% set items = craft.entries({
    section: 'events',
    level: 2
}).find() %}

{% for row in items|batch(2, 'No item') %}
    &lt;div class="row"&gt;
        {% for item in row %}
            {# Your entry #}
        {% endfor %}
    &lt;/div&gt;
{% endfor %}