import
The import keyword makes the contents of a module available in a script or another module. This keyword operates with
the keyword export as its counterpart.
An import statement assigns a module alias with as. A with block optionally lists imported names, and may restate
types for clarity. Without a with block, exported elements are accessed through the module alias.
The use of import is documented together with export and modules.
import links, keyword
import links imports a link to another executable script. It does not import
that script as a module. The imported alias exposes the script identifier as the
constant Id.
import links "/project/path" as F
The imported F.Id is a scalar number and can be used in ordinary Envision
expressions.
import links "/operations/replenishment" as Replenishment
import links "/operations/pricing" as Pricing
show summary "Linked script ids" with
Replenishment.Id
Pricing.Id
A script can contain several import links statements. Each linked script has
its own alias, and its identifier is accessed through that alias.
import links only accepts executable scripts and instances. It cannot import
modules or templates. Use ordinary import for module paths.