# For Loops - 5 parameters?

**URL:** <https://forum.kirupa.com/t/for-loops-5-parameters/290476>\
**Category:** flash\
**Created:** [June 15, 2009, 3:58pm UTC](https://forum.kirupa.com/t/for-loops-5-parameters/290476 "2009-06-15T15:58:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [June 15, 2009, 3:58pm UTC](https://forum.kirupa.com/t/for-loops-5-parameters/290476/1 "2009-06-15T15:58:11Z")

</div>

Hello

I recently took over a project from a consultant (which is why I am asking you guys this question and not the developer)…

Personally I’ve never seen a for loop with more then 3 parameters…

```auto

for(var i:uint = 0, l:uint = arr.length, counter:uint = 0; i < l; i++)
            {
                if(counter == 3)
                {
                    str += ",";
                    
                    counter = 0;
                }
                
                str += arr*;
                
                counter++;
            }

```

What would be the benefit or reasoning behind this?

Thanks
