import (JavaScript)
Imports code from a script library.
Syntax
import libraryname
Usage
A script library allows you to store classes, functions, and variables for common use within an application.Examples
This following example uses a function defined in a library:import PrintUtil;
printToLog("Here's some stuff for the log.");
The script
library named
PrintUtil
has the following content:// Function for highlighting output to log
function printToLog(stuff) {
print("\r\nPRINT START\r\n");
print(stuff);
print("\r\nPRINT END\r\n");
}