Require

Syntax

require <capabilities: string-list>;

Description

The require action notes that a script makes use of a certain extension. Multiple capabilities can be declared with a single require.

The require command must be used before any other command. An error occurs if a require appears after a command other than require.

Example

require "fileinto"; require "vacation";

Note that the above script is identical to the one below.

require ["fileinto", "reject"];

Module

Core : Requires no import statement

Resources

RFC3028