Siebe 0 Newbie Poster

Is there something like a hashtable that accepts multiple keys?

Basically I'm looking for something that's similar to a multi-dimensional array, but in stead of accepting index numbers, it should accept keys to unveil it's content.

I now use nested hashtables, but I think it becomes very complicated after a while. Besides casting their type every time becomes a pain when you're four levels deep!

Let's be more specific. e.g. I have two hashtables.
Hashtable 1: contains chemical substances with their properties (e.g. Nitrogen)
Hashtable 2: contains a list of pipes through which mixes of these chemicals are transported.

Now I want to be able to look up quickly for substance X and tube Y how much is transported.
Therefore I'd like to use something like myvalue = myhashtable.item(X,Y), but I don't think that exists

So what I do now is nesting hashtable 1 in hashtable 2.
Is this the only way to do it?

tnx
Siebe