Comparing items in structure

dawidone's picture

Hello,

I'm creating a Quartz Composition that selects names randomly from an XML file and displays them on screen (video of working version attached).

Attached is also a stripped down DataLoader QC along with the XML file. Each spacebar press generates a new name.

I recently learned that the participants have the option of buying more than 1 entry into the drawing, which means their name can be seen in the XML more than once. This increases their chance of being selected, but once they win, their name should no longer come up.

I do keep track of the winners with a Queue patch which puts them into a structure. My idea is to come up with a way to compare a newly selected name with the items in the queue, and request a new one if there is a match, but I don't even know how to compare 1 item to multiple items in QC. Any ideas? Is this even the best approach?

Note, I'm using the CoGeRandom plugin.

Thank you. Davvi