From WikiChip
$findtok Identifier - mIRC
< mirc‎ | identifiers
Revision as of 17:10, 21 September 2017 by 83.204.218.38 (talk) (Created page with "{{mirc title|$findtok Identifier}}'''$findtok''' returns the position of the Nth matching token in text. == Synopsis == <pre>$findtok(<list>,token,N,C)</pre> == Paramters =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$findtok returns the position of the Nth matching token in text.


Synopsis

$findtok(<list>,token,N,C)

Paramters

  • <list> - The list of tokens (can be empty)
  • token - the token used to match
  • N - The Nth matching token, default to 1, if N is 0, returns the total number of matching tokens.
  • <C> - The ascii number (or code point) of the character seperating the tokens

Properties

None

Example

$findtok(one two three, two, 32) return 2

Compatibility

Added: mIRC v4.7
Added on: 09 Dec 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also

$addtokcs $remtokcs $gettok $deltok $matchtok $wildtok $findtokcs $istok $instok $puttok $numtok $reptokcs $sorttokcs