# Iterate through XML loading 6 at a time if not 6 set to false

**URL:** https://forum.kirupa.com/t/iterate-through-xml-loading-6-at-a-time-if-not-6-set-to-false/238592
**Category:** flash
**Created:** [September 12, 2007, 10:05pm UTC](https://forum.kirupa.com/t/iterate-through-xml-loading-6-at-a-time-if-not-6-set-to-false/238592 "2007-09-12T22:05:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Multi\_Task](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@Multi\_Task](https://forum.kirupa.com/u/Multi_Task)
#### Post date: [September 12, 2007, 10:05pm UTC](https://forum.kirupa.com/t/iterate-through-xml-loading-6-at-a-time-if-not-6-set-to-false/238592/1 "2007-09-12T22:05:52Z")

</div>

Question regarding math:

I am trying to interate through an xml set (the xml will constantly change) and display 6 items at a time. If the total from xml is not divisible by 6 and lets say 4 left from the array, only show 4 and set the other attached mcs to false. I am adding them via attachMovie and basically do not know how to set up the math on it, can anyone shed some light?  
MT
