# Array Problem

**URL:** <https://forum.kirupa.com/t/array-problem/175823>\
**Category:** Uncategorized\
**Created:** [January 18, 2006, 3:10am UTC](https://forum.kirupa.com/t/array-problem/175823 "2006-01-18T03:10:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brighteyes](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@brighteyes](https://forum.kirupa.com/u/brighteyes)\
**Post date:** [January 18, 2006, 3:10am UTC](https://forum.kirupa.com/t/array-problem/175823/1 "2006-01-18T03:10:54Z")

</div>

I know this is basic, but I cant seem to understand why this doesn’t work.

```auto

array = new Array();
array[1] = "a";
if (array.slice(0, 1) == "a") {
    trace("Maybe my life isn't worthless!!!");
}

```
