That’s not how queues are used. Queues are used to get the items one by one and do something with them. So what you’d want to do is a transactional automation (there’s a template for this) that gets a queue item, compares it, does whatever else you need to do, then marks the transaction success or fail, loops back around and gets the next transaction.