Project

General

Profile

$addtokcs » History » Version 2

Per Amundsen, 02/07/2014 08:50 PM

1 1 Per Amundsen
h1. $addtokcs
2
3
_Added in 1.9.0_
4
5 2 Per Amundsen
$addtokcs(text,token,C)
6 1 Per Amundsen
7
Adds a token to the end of text but only if it is not already in text.
8
9
<pre>
10
//echo -ag $addtokcs(a.b.c,D,46) returns a.b.c.D
11
//echo -ag $addtokcs(a.b.c.d,c,46) returns a.b.c.d
12
</pre>
13
14
The C parameter is the ascii value of the character separating the tokens.
15
16
$addtok is case-sensitive, see [[$addtok]] for case-insensitive version.