Check if a specified user is in the another person's personal contact list.

 

Syntax

function mPersonalContactsIsUserExists(iUINOwner, iUIN: integer): boolean;

 

Parameters and return values

Parameter

Type

Value

iUINOwner

integer

user unique ID; an owner of a personal contact list, >0;

iUIN

integer

user unique ID, >0.

 

Function result

"True" if a user is in the personal contact list, "False", if not or if you specify nonexistent UINs.

 

Example


const
  UIN_OWNER  = 6;
  UIN_USER   = 3;
begin
  if mPersonalContactsIsUserExists(UIN_OWNER, UIN_USER) then mLogScript('User is in the list!', '')
    else mLogScript('Not in list or unknown error', '');
end.


Script work result

[16:15:10] (Log "mPersonalContactsIsUserExists"): Not in list or unknown error

[16:15:10] (Run "mPersonalContactsIsUserExists"): Script operation time: 4 ms

[16:15:10] (Run "mPersonalContactsIsUserExists"): Script done successfully.

 

See also

mLogScript