# Help with finding values in arrays

**URL:** <https://forum.kirupa.com/t/help-with-finding-values-in-arrays/228468>\
**Category:** flash\
**Created:** [June 8, 2007, 2:27am UTC](https://forum.kirupa.com/t/help-with-finding-values-in-arrays/228468 "2007-06-08T02:27:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benek](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/benek/32/2899_2.png) [@Benek](https://forum.kirupa.com/u/Benek)\
**Post date:** [June 8, 2007, 2:27am UTC](https://forum.kirupa.com/t/help-with-finding-values-in-arrays/228468/1 "2007-06-08T02:27:40Z")

</div>

Is there a simple way to ask “Does this array contain this value?”

For example I have an array1 [0,2,4,6,8,10] and another array2 [1,3,5,7,9]. I want to say something like:

```auto

if (array1 contains "3") {
//do something
} else if (array2 contains "3") {
//do something else
}

```

In this case of course it would find the value “3” in array2 and then do the appropriate action specified there.

**Possible?**
