# myArray\[not i\]?

**URL:** <https://forum.kirupa.com/t/myarray-not-i/226276>\
**Category:** Uncategorized\
**Created:** [May 19, 2007, 4:36pm UTC](https://forum.kirupa.com/t/myarray-not-i/226276 "2007-05-19T16:36:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saevik](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@saevik](https://forum.kirupa.com/u/saevik)\
**Post date:** [May 19, 2007, 4:36pm UTC](https://forum.kirupa.com/t/myarray-not-i/226276/1 "2007-05-19T16:36:22Z")

</div>

Hi,

Is there anything like myArray[not i], that’ll return the items in the array that is not in the ‘i’ place of the array?  
[AS]  
myArray = new Array (item1, item2, item3, item4);  
for (i = 0; i \< myArray.length; i++) {  
//Trace the current value of the array  
trace(myArray\*);

```
//Trace all the items except for the current value
trace(myArray[not i]);

```

}  
[/AS]

I am aware that myArray[not i] does not work, but is there anything like this?

Thanks.

Peter :disco:
