use a for loop to loop through the array and then compare the variable name to the variable number of the loop.
Thanks Blaw!