This version is out of date, covering development from v9.5.0 to v9.7.3. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v9 Icon

Square brackets: dictionary keys with multiple values

Another case where a nested list might be used is where a dictionary key's value is a list:

$MyDictionary = {dog:terrier;boat:yawl;fruit:[apple;pear]};

$MyFruit = $MyDictionary[fruit][1]; 

returns 'pear', the second item in the (zero-indexed) list that is the value of key 'fruit'.