Check the existence of a specified numeric ID of a WEB support group.

 

Syntax

function mWebSupportGroupIDExists(iID: integer): boolean;

 

Parameters and return values

Parameter

Type

Value

ilD

integer

unique ID of a WEB support group

 

Function result

"True" if a group with such ID exists, "False" if not.

 

Example


var
  i, iTotal: integer;
begin
  iTotal := 0;
  
    for i := 1 to 10 do
      if mWebSupportGroupIDExists(i) then begin
        inc(iTotal);
        mLogScript('Group ID: ' + IntToStr(i), '');    
      end;
          
     if iTotal = 0 then mLogScript('No any web support groups found', '')
       else mLogScript('There are ' + IntToStr(iTotal) + ' web support groups found', '');    
end.


Script work result

[14:52:07] (Log "mWebSupportGroupIDExists"): Group ID: 1

[14:52:07] (Log "mWebSupportGroupIDExists"): Group ID: 2

[14:52:07] (Log "mWebSupportGroupIDExists"): There are 2 web support groups found

[14:52:07] (Run "mWebSupportGroupIDExists"): Script operation time: 3 ms

[14:52:07] (Run "mWebSupportGroupIDExists"): Script done successfully.

 

See also

IntToStr

mLogScript