From WikiChip
Difference between revisions of "mirc/identifiers/$addtok"
(Created page with "{{mirc title|$addtok Identifier}}'''$addtok''' adds a token to a list of token, only if the token does not already exist in the list, return the resulting list. == Synopsis =...") |
(Reverting as combining entries will cause other issues.) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{mirc title|$addtok Identifier}}'''$addtok''' adds a token to a list of token, only if the token does not already exist in the list, return the resulting list. | + | {{mirc title|$addtok Identifier}}'''$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 a case sensitive equivalent. |
+ | |||
== Synopsis == | == Synopsis == | ||
Line 6: | Line 7: | ||
== Paramters == | == Paramters == | ||
− | * '''<list> - The list of tokens (can be empty) | + | * '''<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. | + | * '''<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 | * '''<C>''' - The ascii number (or code point) of the character seperating the tokens | ||
Line 36: | Line 37: | ||
− | [[Category: | + | [[Category:mIRC identifiers|addtok]] |
Latest revision as of 09:30, 15 February 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$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 a case sensitive equivalent.
Synopsis[edit]
$addtok(<list>,<token>,<C>)
Paramters[edit]
- <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[edit]
None
Example[edit]
//echo -a $addtok(a,b,32)
Would display "a b"
Compatibility[edit]
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[edit]
$addtokcs $remtok $gettok $deltok $matchtok $wildtok $findtok $istok $instok $puttok $numtok $reptok $sorttok