Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Check if any elements in one array exist in the other

$
0
0

Is there any way I can check to see if one array, say $arrayOne, contains any elements from $arrayBase? They may not necessarily contain the same elements, and may be in a different order, so iterative comparison is not possible.

The reason I ask is I want to get my exchange queues that are over 100 messages long, and keep these in $ExchangeQueues, and then get them again with $ExchangeQueuesNow and check if the particular queues that were over 100 have increased or decreased. I can't figure out the algorithm to doing this. Could someone please help?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>