From WikiChip
Difference between revisions of "mirc/identifiers/$addtok"
< mirc‎ | identifiers

(Synopsis)
Line 4: Line 4:
 
== Synopsis ==
 
== Synopsis ==
 
<pre>$addtok(<list>,<token>,<C>)
 
<pre>$addtok(<list>,<token>,<C>)
$addtok(<list>,<token>,<C>)</pre>
+
$addtokcs(<list>,<token>,<C>)</pre>
  
 
== Paramters ==
 
== Paramters ==

Revision as of 10:01, 15 February 2018

$addtok adds a token to a list of token, only if the token does not already exist in the list, return the resulting list. $addtokcs is the case sensitive version.


Synopsis

$addtok(<list>,<token>,<C>)
$addtokcs(<list>,<token>,<C>)

Paramters

  • <list> - The list of tokens (can be empty)
  • <token> - The token to add, if you pass $null here, the original list is returned, it doesn't return an error.
  • <C> - The ascii number (or code point) of the character seperating the tokens

Properties

None

Example

//echo -a $addtok(a,b,32)

Would display "a b"

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

$remtok $gettok $deltok $matchtok $wildtok $findtok $istok $instok $puttok $numtok $reptok $sorttok