Contains function in PilotScript

Hi

I was going to send this as a support request, but thought it was a) too trivial, and b) possibly of interest to others.

I was wondering about the behaviour of the contains function in PilotScript. If I have a list of values on my datastream that I want to test against an array, will the contains function only provide the first match it sees then ignore any others?

Example:
@myarray := [7,9,12,15]
myData := 7, 9, 7, 21, 36, 3...

ContainsResult := 7, 9

ie having seen 7 once, it is no longer matched? If so, is there a way to do the match with replacement so that the next occurrence of 7 will also be matched?

Thanks
Hassan