requiremodule

Returns an error if module is not loaded in Nelson.

Syntax

  • requiremodule(module_short_name)

Input argument

  • module_short_name - a string: short module's name.

Description

requiremodule returns an error if desired module is not loaded.

This function is usefull to verify a dependency on another module.

Example

See module skeleton for example

ismodule('module_skeleton')
requiremodule('module_skeleton')
addmodule([nelsonroot(), '/module_skeleton'], 'module_skeleton')
ismodule('module_skeleton')
requiremodule('module_skeleton')

See also

ismodule, addmodule, getmodules.

History

Version
Description

1.0.0

initial version

Author

Allan CORNET

Last updated