# Array question

**URL:** <https://forum.kirupa.com/t/array-question/306479>\
**Category:** Uncategorized\
**Created:** [March 16, 2010, 10:49am UTC](https://forum.kirupa.com/t/array-question/306479 "2010-03-16T10:49:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RebeccaLessay](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@RebeccaLessay](https://forum.kirupa.com/u/RebeccaLessay)\
**Post date:** [March 16, 2010, 10:49am UTC](https://forum.kirupa.com/t/array-question/306479/1 "2010-03-16T10:49:46Z")

</div>

Hi,

I wanted to know if there’s a way to add more options to a for loop regarding arrays. Say the current position in the loop is 1 (thats where my block is) then i want it to check the array if current position -1, +1,-3,+3. if any of these are null (thus, empty spot.) Because the block moves across a board i need the script to be adaptable.

If anyone could tell me if its even possible or post an example I’d be grateful 😃
