Tables are associative lists. They exist as hashed arrays with a key and value pair (<key>,<value>) for each member. The keys for a table must be unique.

A variable may be initialized to be of type table. An example is:

y = table();

To add a value to a table, use the following syntax:

         <table_name>[<key>] = <value>;

The value specified for the <key> or for the <value> can be of any value type.

Multicolumn tables can be implemented in two ways.

The first method implements the multicolumn table as a table of tables:

START {
        .. eol
} do {
        x = table();
        x["a"] = table();
        x["a"]["b"] = 1;
        x["a"]["c"] = 2;
        print(x["a"]["b"]);
        print(x["a"]["c"]);
}

The second method implements the multicolumn table as a single table with joined key:

START {
        .. eol
} do {
        x = table();
        x["a|b"] = 1;
        x["a|c"] = 2;
        print(x["a|b"]);
        print(x["a|c"]);
}