# Array inside for

**URL:** <https://forum.kirupa.com/t/array-inside-for/307152>\
**Category:** Uncategorized\
**Created:** [March 29, 2010, 4:06pm UTC](https://forum.kirupa.com/t/array-inside-for/307152 "2010-03-29T16:06:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nim](https://avatars.discourse-cdn.com/v4/letter/n/67e7ee/32.png) [@Nim](https://forum.kirupa.com/u/Nim)\
**Post date:** [March 29, 2010, 4:06pm UTC](https://forum.kirupa.com/t/array-inside-for/307152/1 "2010-03-29T16:06:22Z")

</div>

I’ve got 4 arrays with 14 objects each:

player1[]  
player2[]  
player3[]  
player4[]

How could I trace all the objects inside 2 _for_s? How is the right syntax ?

The following obviously is wrong:

```auto

for(var i:uint=1;i<5;i++)
{
	for(var j:uint=0;j<14;j++)
	{
		trace((player+i)[j].cardType);
	   
	}
}

```

Please Help
