Project

General

Profile

$addtokcs » History » Revision 8

Revision 7 (Per Amundsen, 08/09/2015 05:58 AM) → Revision 8/10 (Per Amundsen, 08/10/2015 05:10 AM)

_Added in 1.9.0_ 

 *$addtokcs(text,token,C)* 

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

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

 *Parameters* 

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

 *Example* 

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

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