Comparing strings in arrays

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

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: