I have a 3d array, and I know the z-index and particular value. I want to find the x value next to the value I know. If I use for each xyz it will search in all z-index positions. How can I perform a search for the particular value if I know the z-index?