I have a pair of arrays; one is an inventory subset of elements; the other is an array of all the elements in the periodic table. I want to compare the two arrays and enable only those boolean controls for the elements listed in the inventory sub array.
I've created code that creates the inventory sub array (3). Initially, I had set it up to enable all (2) of the elements in the periodic table cluster (1), but now I want to replace that code with the scenario above, only enabling those elements which appear on our inventory sub array. A colleague suggested the solution in (4), which I've modified to (5). I just can't figure out how to create the array of true false values from the sub array to enable those elements in the larger array.