Project

General

Profile

$addtok » History » Version 3

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

1 1 Per Amundsen
h1. $addtok
2
3 3 Per Amundsen
_Added in 1.9.0_
4
5 1 Per Amundsen
$addtok(text,token,C)
6
7
Adds a token to the end of text but only if it is not already in text.
8
9
<pre>
10
//echo -ag $addtok(a.b.c,d,46) returns a.b.c.d
11
//echo -ag $addtok(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-insenseive, see [[$addtokcs]] for case-sensetive version.