From WikiChip
Editing mirc/identifiers/$puttok

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 1: Line 1:
{{mirc title|$puttok identifier}}'''$puttok''' replaces the Nth $asc(C)-delimited token in a list.
+
{{mirc title|$puttok Identifier}}
 +
'''$puttok''' replaces the Nth $asc(C)-delimited token in a list.
  
 
== Synopsis ==
 
== Synopsis ==
Line 13: Line 14:
  
 
== Properties ==
 
== Properties ==
 +
 
None
 
None
  
 
== Examples ==
 
== Examples ==
<source lang=mirc>//echo -a $puttok(a-b-c-d-e-f,TEST,3,46))
+
 
; returns a-b-TEST-d-e-f</source>
+
<pre>//echo -a $puttok(a-b-c-d-e-f,TEST,3,46))
 +
; returns a-b-TEST-d-e-f</pre>
  
 
Shows the unchanged path with the filename changed to TEST.TXT:
 
Shows the unchanged path with the filename changed to TEST.TXT:
  
<source lang=mirc>//echo -a $puttok($mircexe,TEST.TXT,-1,92))</source>
+
<pre>//echo -a $puttok($mircexe,TEST.TXT,-1,92))</pre>
  
<source lang=mirc>//echo -a $puttok(x11xx33X44x55x66x,TEST,3,120)
+
<pre>//echo -a $puttok(x11xx33X44x55x66x,TEST,3,120)
 
; returns 11x33X44xTESTx66
 
; returns 11x33X44xTESTx66
; because leading/trailing/duplicate delimiters are removed before evaluating <LIST>. $chr(120) is lower-case x so the capital X is not a delimiter.</source>
+
; because leading/trailing/duplicate delimiters are removed before evaluating <LIST>. $chr(120) is lower-case x so the capital X is not a delimiter.</pre>
  
'''Note:''' Unlike CSV format, if C=44 to delimit with commas, double-quotes around filename containing a comma does not allow the entire filename to be a single token. If you want $filename to be a token in a comma-delimited list of tokens, you should use {{mIRC|$replace|$replace}} to change the comma in the filename into another character that cannot appear in the filename before adding as a token, then use {{mIRC|$replace|$replace}} on the extracted token to restore any comma(s).
+
'''NOTE:''' Unlike CSV format, if C=44 to delimit with commas, double-quotes around filename containing a comma does not allow the entire filename to be a single token. If you want $filename to be a token in a comma-delimited list of tokens, you should use {{mIRC|$replace|$replace}} to change the comma in the filename into another character that cannot appear in the filename before adding as a token, then use {{mIRC|$replace|$replace}} on the extracted token to restore any comma(s).
  
 
== Compatibility ==
 
== Compatibility ==
Line 33: Line 36:
  
 
== See also ==
 
== See also ==
 +
* {{mIRC|$gettok}}
 +
* {{mIRC|$numtok}}
 +
* {{mIRC|$findtok}}
 +
* {{mIRC|$matchtok}}
 +
* {{mIRC|$wildtok}}
 +
* {{mIRC|$istok}}
 
* {{mIRC|$addtok}}
 
* {{mIRC|$addtok}}
 +
* {{mIRC|$instok}}
 
* {{mIRC|$deltok}}
 
* {{mIRC|$deltok}}
* {{mIRC|$findtok}}
 
* {{mIRC|$gettok}}
 
* {{mIRC|$instok}}
 
* {{mIRC|$istok}}
 
* {{mIRC|$matchtok}}
 
* {{mIRC|$numtok}}
 
 
* {{mIRC|$remtok}}
 
* {{mIRC|$remtok}}
 
* {{mIRC|$reptok}}
 
* {{mIRC|$reptok}}
 
* {{mIRC|$sorttok}}
 
* {{mIRC|$sorttok}}
* {{mIRC|$wildtok}}
 
 
* [[List of identifiers - mIRC]]
 
* [[List of identifiers - mIRC]]
 
{{mIRC identifier list}}
 
{{mIRC identifier list}}
[[Category:mIRC identifiers|puttok]]
 

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)