Loop all queue items given item informaiton

Hi all

I have a process wherein I have added items (with specific item information). I need to get all (new) queue items and loop through to count all new items in the queue that fulfills a specific criteria (for two item information parameters).

Process is:

  1. Get all queue Items (queueItem>Status = New)
  2. For each item: if item information A = “1” and item information B = “2” then add to a counter.
  3. In the end, I need the number of new items that fulfills the criteria in point 2.

I have tried to do it in a for each loop, but do not quite know how to reference the item information (since the ‘table’ is objects).

Hope someone has an idea.

Thanks in advance!

Regards,
Morten