From WikiChip
Difference between revisions of "mirc/commands/tokenize"
< mirc‎ | commands

m (Bot: Adding a template)
m (Bot: Fixing links)
Line 33: Line 33:
 
* [[List of commands - mIRC|List of commands]]
 
* [[List of commands - mIRC|List of commands]]
 
* [[List of identifiers - mIRC|List of identifiers]]
 
* [[List of identifiers - mIRC|List of identifiers]]
* [[$1- identifier - mIRC|$1-]]
+
* {{mIRC|$1-}}
* [[$0 identifier - mIRC|$0]]
+
* {{mIRC|$0}}
* [[$gettok identifier - mIRC|$gettok]]
+
* {{mIRC|$gettok}}
 
{{mIRC command list}}
 
{{mIRC command list}}
  
 
[[Category:MIRC commands]]
 
[[Category:MIRC commands]]

Revision as of 20:42, 5 July 2014

The /tokenize command is used to fill the $1 $2 ... $N identifiers with tokens in a string separated by a delimiter.

Synopsis

/tokenize <C> <text>

Switches

None

Parameters

  • <C> - The code point ($asc() value) of the character used as the delimiter
  • <text> - The string of <C> delimited tokens which will fill the $N identifiers

Example

Typing the following into the editbox returns a result:

//tokenize 58 one:two:three | echo -a Result of $!2: $2
;$asc(:) == 58
Result of $2: two

More examples using different delimiters:

//tokenize 32 Hello, how are you? | echo -a Result of $!3: $3
;$chr(32) is a space
Result of $3: are
//tokenize 44 This is, a comma delimited, list. | echo -a Result of $!1: $1
Result of $1: This is

Compatibility

Added:

Added On:

Note: Individual switches were not taken into consideration.

See also

[Expand]
v · d · e mIRC commands list