You are here: Elements > Decoder Script Reference > INCLUDE

INCLUDE

The keyword INCLUDE allows you to put some of the code in a different file. After the INCLUDE keyword should be a filename to be inserted at that point in the decoder. The file can contain tables and/or fields. The file must be in the same directory as the DEC file. By convention we use the extension .DH, but any extension except for DEC or DEX is ok.

For example:

INCLUDE commandtable.dh

Files should not be included in more than one place in the decoder, as this will result in duplicate table or field definitions in most cases.