Okay, I think that answers the question. I could use the Small Integer as an incremental in order to start an interation, but have it stop when the incremental value reaches a desired maximum?
I learned this evening that there are some undocumented variables passed to VA regarding materials on scanned bodies. One is a DEC value that contains the percentage of a material found. The name contains a number that corresponds to an index of discovered materials. The second is an INT that tells you a zero-based maximum indexed value. So if you scan a body, and there are seven materials discovered, you'd have seven versions of the DEC variable named 0 through 6.
The third value is a TXT that tells you what material corresponds to which DEC name.
So I could use the small incremental to iterate through all that to find how much Germanium a given body has.
I think.