lr.loadLibrary

Evaluates and runs the specified JavaScript file in the global context.

ExampleRuntime Functions

Syntax

            lr.loadLibrary( "<path>" );

Arguments

ArgumentComments
path

One of:

  • A file name - The file is in the script folder. ("myscript.js")
  • A relative path - The path root is the script folder. ("../../myscript.js")
  • A fully specified path name. ( "C:\scripts\myscript.js")

The lr.loadLibrary function evaluates and runs the specified js file in the global context. Enter the function manually before the beginning of the action scope.

Return Values

Not applicable

Parameterization

Parameterization is not applicable to this function.

Example

lr.loadLibrary('circle.js');
function Action()
{
	lr.outputMessage(circle.area(5));
	return 0;
}