Variable condition using a variable as a search

Please see this topic, which should answer your question:
Store Values in Dynamically Created Variables?

If not, feel free to follow-up with any questions that you have.