Project

General

Profile

$ulist » History » Revision 4

Revision 3 (Per Amundsen, 08/10/2015 08:55 AM) → Revision 4/5 (Per Amundsen, 05/24/2018 10:13 AM)

_Added in 1.9.7_ 

 *$ulist(nick!userid@address,L,N)* 

 Returns the Nth address in the Users list that matches the specified address and level. 

 If you do not specify a full address, it completes the address with [[Scripting_Wildcards|wildcards]]. wildcards.  
 If you do not specify N, the first matching address is returned. 
 If you specify L, only matching addresses that contain the specified level are returned. 

 L and N are optional, but if you specify L, you must specify N. 

 *Parameters* 

 nick!userid@address - Address to match. 
 L - Access level to match. 
 N - The Nth match. 

 *Properties* 

 .info - Returns the information field of the matched address. 

 *Example* 

 <pre> 
 ; Lookup all addresss and print the number of matches. 
 //echo -ag $ulist(*,0) 

 ; Lookup any address and print the first one. 
 //echo -ag $ulist(*,1) 
 </pre>