# Loop help?

**URL:** https://forum.kirupa.com/t/loop-help/160624
**Category:** Uncategorized
**Created:** [August 27, 2005, 7:52pm UTC](https://forum.kirupa.com/t/loop-help/160624 "2005-08-27T19:52:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ineedsleep](https://avatars.discourse-cdn.com/v4/letter/i/e5b9ba/32.png) [@Ineedsleep](https://forum.kirupa.com/u/Ineedsleep)
#### Post date: [August 27, 2005, 7:52pm UTC](https://forum.kirupa.com/t/loop-help/160624/1 "2005-08-27T19:52:40Z")

</div>

dayVal = day.value;

for(dayVal = 1; dayVal/7 != 1; dayVal++)  
{trace (dayVal);  
}

the loop starts at 0 and not 1 so the loop ends at 6 does any one know how to resolve this issue?? its so that what ever number dayVal is it will be rounded up to a number that is Divisble by 7

can some one help me!!!
