arrayboth(
ARRAYONE
,
ARRAYTWO
,
SEPARATOR
)

The arrayboth( function creates a new array from two arrays. The new array contains only items that are in both of the original arrays.


Parameters

This function has three parameters:

arrayone – the first array.

arraytwo – the second array.

separator – the separator character or characters. Both of the original arrays must use this separator, and the result will also use this separator.


Description

This function creates an new array from two arrays. The new array contains only items that are in both of the original arrays. The output array will be sorted alphabetically. Empty array elements, if any, will not be included in the output array, even if both of the original arrays contain empty elements.

arrayboth("red,green,orange,blue,white","black,white,red,blue",",") ☞ blue,red,white
arrayboth("j.a.f.g.x","a.b.c.d.e.f.g.h.i",".") ☞ a.f.g

See Text Arrays for more information about arrays.


See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0 but more than one character is now allowed for use as the separator parameter.