{% for loop_inner in loop %}

{% if loop_inner.S_ROW_NUM is divisible by(4) %}yes{% else %}no{% endif %}

{% endfor %}

{% for loop_inner in loop %}

{% if loop_inner.S_ROW_NUM is divisible by(3) %}yes{% else %}no{% endif %}

{% endfor %}
