# Check if the value is in the Array

**URL:** <https://forum.kirupa.com/t/check-if-the-value-is-in-the-array/214150>\
**Category:** Uncategorized\
**Created:** [January 25, 2007, 10:34pm UTC](https://forum.kirupa.com/t/check-if-the-value-is-in-the-array/214150 "2007-01-25T22:34:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mixey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mixey/32/1979_2.png) [@mixey](https://forum.kirupa.com/u/mixey)\
**Post date:** [January 25, 2007, 10:34pm UTC](https://forum.kirupa.com/t/check-if-the-value-is-in-the-array/214150/1 "2007-01-25T22:34:57Z")

</div>

Hi guys!

Does anybody know, how can I check if the value is in the Array?

```auto
var myArray:Array = Array("firstElement", "secondElement", "thirdElement");
if( myArray.isInArray("firstElement")){
    trace("true");
} else {
    trace("false");
}

```
