Example: lr.abort

In the following example, lr_error_message sends a message to the output window or log file if the login fails. lr.abort is then invoked to abort the script.

status = myLogon("Logon",
          "URL=https://secure.computing.com//login.asp?user=(username)&session={ssid}");

if (status == LR_FAIL) {
     lr.error_message("Error: "Unable to login to secure computing");
     lr.abort();
}