tbllookup

This maps a value through a table.

tbllookup ?-side side? table value

side is user-defined and only available if the table is defined as bi-directional.

The default sides are input and output.

If the value is not found, then this command returns nothing.

Example:

set groupname [tbllookup groups 26]
set docid [tbllookup -side output docs "Dr. Watson"]