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.
int status;
status = web_url("Login",
"URL=https://secure.computing.com//login.asp?user=(username)&session={ssid}",
"RecContentType=text/html", LAST );
if (status == LR_FAIL) {
lr_error_message("Error: %s", "Unable to login to secure computing");
lr_abort();
}