Project

General

Profile

$addtok » History » Revision 3

Revision 2 (Per Amundsen, 02/07/2014 08:45 PM) → Revision 3/15 (Per Amundsen, 02/07/2014 08:45 PM)

h1. $addtok 

 _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. 

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

 The C parameter is the ascii value of the character separating the tokens. 

 $addtok is case-insenseive, see [[$addtokcs]] for case-sensetive version.