From Scriptwiki
Revision as of 01:19, 3 February 2011 by Vliedel (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

  • Properties: info

You can specify a wildcard address or a * to match any address in the user list. If you don't specify a full address, it completes the address with wildcards. If you don't specify N, the first matching address is returned.

If you specify L, only matching addresses that contain the specified level are returned.

Using the 'info' property it will return the info-line for the matched userlist entry.

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


The following example will loop through the userlist and print/echo each entry.

var %x = 1
while (%x < $ulist(*!*@*,0)) {
  echo -a * %x $+ ) Mask: $ulist(*!*@*,%x) Level: $level($ulist(*!*@*,%x)) Info: $iif($ulist(*!*@*,%x).info,$v1,none)
  inc %x

See Also