# Is there a way to do this?

**URL:** <https://forum.kirupa.com/t/is-there-a-way-to-do-this/330371>\
**Category:** flash\
**Created:** [January 10, 2013, 1:08pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-do-this/330371 "2013-01-10T13:08:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tompa](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@Tompa](https://forum.kirupa.com/u/Tompa)\
**Post date:** [January 10, 2013, 1:08pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-do-this/330371/1 "2013-01-10T13:08:59Z")

</div>

I got this loop that should loop until it reaches the length of an array  
**for (var i:int = 0; i \< d\_listDataArray.length; i++)**  
The problem is that, it should NEVER be greater than 15._(The array can be all from 1-500)_

I guess the pseudo code for this would look like this:  
\*\*for (var i:int = 0; i \< d\_listDataArray.length but maximum 15!!; i++) {

\*\*Is there any simple way to do this?  
It’s kind of hard to explain and I don’t really know what to google for either…

_Thanks in advance,  
Tompa_
