You have two options, either loop through the collection with a decision stage doing your comparison, or check out the Utility - Collections VBO that comes with the product that has some useful code based actions for you to experiment with (and extend)