# Comparing strings in arrays

**URL:** <https://forum.kirupa.com/t/comparing-strings-in-arrays/205381>\
**Category:** flash\
**Created:** [October 28, 2006, 10:18pm UTC](https://forum.kirupa.com/t/comparing-strings-in-arrays/205381 "2006-10-28T22:18:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![x\_polar](https://avatars.discourse-cdn.com/v4/letter/x/9dc877/32.png) [@x\_polar](https://forum.kirupa.com/u/x_polar)\
**Post date:** [October 28, 2006, 10:18pm UTC](https://forum.kirupa.com/t/comparing-strings-in-arrays/205381/1 "2006-10-28T22:18:49Z")

</div>

Hi everyone,

a shirt question, how would you compare whether one element from an array is contained in another array?

I guess the code would look something like this

```auto
for (var i = 0; i<my_WordArray.length; i++) {
    if (my_WordArray* == greeting_array) {
                    trace("greeting invovled");
    }
 }

```

But then again I know something is out of place… Just can’t seem to understand what :jail:
