how to find the value of a specific member in an index in a struct array

So what’s the exact problem you have? First thing that I noticed is that you are iterating through all of the items and always generate an error message even if you have enough keys in some other entry.