OPTION_IS_LOADED Function

Checks if a specified Option Programming Interface (OPI) optional module is currently loaded.

Usage

result = OPTION_IS_LOADED (option_name)

Input Parameters

option_name—(string) The name of the OPI option to check.

Output Parameters

result—A value indicating the status of the given OPI option.

1—Indicates the OPI option is currently loaded.

0—Indicates the OPI option is not loaded.

Keywords

None.

Discussion

OPI options can be loaded explicitly by any PV‑WAVE user using the LOAD_OPTION procedure. These optional modules can be written in C or FORTRAN, and can contain new system functions or other primitives. For detailed information on creating OPI options, see the PV‑WAVE Application Developer’s Guide.

Example

IF NOT OPTION_IS_LOADED('xml') THEN $
   LOAD_OPTION, 'xml'

See Also

LOAD_OPTION, SHOW_OPTIONS, UNLOAD_OPTION