Product Information > JADE Encyclopaedia of Classes – Volume 1 > Chapter 1 - System Classes > Using Subscripts in Dictionaries

Using Subscripts in Dictionaries

The bracket ([]) substring operators enable you to assign values to and receive values from a dictionary. The code fragments in the following examples show the syntax of bracket subscript operators in Dictionary methods.

productDict[prodName] := prod;

prod := productDict[prodName];

customerDict["Sid Who", "12 Any Avenue", date1] := cust;

cust := customerDict["Sid Who", "12 Any Avenue", date1];