Liam's BitchX Command Reference
BitchX scripting function $matchitem()
- matchitem
- Function
- $matchitem()
- Usage
- $matchitem(arrayname pattern)
- Returns
- matchitem() attempts to match a pattern (using wild_match)
to each element of an array in turn and returns the index
(starting at zero) of the best match.
Returns -1 if it cannot find the array, or -2 if no matches occur