Project

General

Profile

$addtok » History » Revision 12

Revision 11 (Per Amundsen, 08/09/2015 05:57 AM) → Revision 12/15 (Per Amundsen, 08/09/2015 05:58 AM)

_Added in 1.9.0_ 

 *$addtok(text,token,C)* 

 Adds a token to the end of text but only if it is not already in text. 

 _[[$addtok]] is case-insensitive, see [[$addtokcs]] for case-sensitive version._ 

 *Parameters* 

 text - Text to add the token to. 
 token - Token to add. 
 C - "ASCII":http://www.asciitable.com/ value of the character separating the tokens. (You can use [[$chr]](N) to find the "ASCII":http://www.asciitable.com/ value of a character) 

 *Example* 

 <pre> 
 ; Returns ;Returns a.b.c.d 
 //echo -ag $addtok(a.b.c,d,46) 

 ; Returns ;Returns a.b.c.d 
 //echo -ag $addtok(a.b.c.d,c,46) 
 </pre>