# Simple question regarding Array use

**URL:** https://forum.kirupa.com/t/simple-question-regarding-array-use/331129
**Category:** flash
**Created:** [May 23, 2013, 1:34am UTC](https://forum.kirupa.com/t/simple-question-regarding-array-use/331129 "2013-05-23T01:34:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wortic](https://avatars.discourse-cdn.com/v4/letter/w/91b2a8/32.png) [@wortic](https://forum.kirupa.com/u/wortic)
#### Post date: [May 23, 2013, 1:34am UTC](https://forum.kirupa.com/t/simple-question-regarding-array-use/331129/1 "2013-05-23T01:34:53Z")

</div>

Hello all,  
I have an array which consists of 50 objects. All of them located at x = 500, y = 500.  
I would like to move one of them to another locaiton. However, I would like to move myArray[1] if possible, if it is not located at 500,500; I would like to move myArray[2]. How can I make a quick check for all of the objects and get the one with lowest number which is on 500,500?
