# Multidimensional array.. need help

**URL:** <https://forum.kirupa.com/t/multidimensional-array-need-help/181840>\
**Category:** Uncategorized\
**Created:** [March 13, 2006, 5:12pm UTC](https://forum.kirupa.com/t/multidimensional-array-need-help/181840 "2006-03-13T17:12:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rockstar](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Rockstar](https://forum.kirupa.com/u/Rockstar)\
**Post date:** [March 13, 2006, 5:12pm UTC](https://forum.kirupa.com/t/multidimensional-array-need-help/181840/1 "2006-03-13T17:12:53Z")

</div>

Hi

I have this multidimensional array like this:

```auto

priceGrabber = new Array();
priceStructure = [[theClip],[price]]
priceGrabber.push(priceStructure);

```

this looks good, everything works. It looks like this when I trace it:

\_level0.room\_mc.cube\_0,299

then I’m doing a for loop, to check if the active object is the same as the one in array.  
so I do this:

```auto

for (z in _root.priceGrabber ) {
    if (_root.priceGrabber [z][0] == whichOne) {
        trace("found it")
        }
    }

```

whichOne and theClip are actually sharing the same info ie: \_level0.room\_mc.cube\_0

Did I miss something here? It seems to me that the IF statement didn’t do the job, for some reasons even when q = 0 which equals to whichOne… it passed it and didn’t do the trace.

Thanks
