# Include

The Include/Must\_Include variable specifies a file that contains text that should be included in the script and evaluated as script code. You can store parts of your script code in a separate text file and reuse it in several documents. This is a user-defined variable.

Syntax:

$(Include=filename)

$(Must\_Include=filename)

There are two versions of the variable:

* Include does not generate an error if the file cannot be found, it will fail silently.
* Must\_Include generates an error if the file cannot be found.

If you don't specify a path, the filename will be relative to the QlikView document working directory. You can also specify an absolute file path.

Information noteThe construction set Include =filename is not applicable.

Examples:

$(Include=abc.txt);

$(Must\_Include=abc.txt);