Example: lr.abort

The following example aborts the run if the login failed.

int status = login("username","password");

if (status == lr.FAIL) {

lr.abort();

return -1;

}

 

public int login(string username, string password)

{

//emulate failed login

return lr.FAIL;

}