I'm attempting to insert a tag mid-way through looping through all the entries in a replicator field. I attempted to use the index and total_results variables in a conditional, but it didn't work:

{{ items }}

          {{ title }}

          {{ if index % 2 == 0 && index == total_results/2 }}
             <div>Inserted div</div>
          {{ /if }}

 {{ /items }}
Answered by Renée Nesseth! Go to answer.