Project

General

Profile

$addtok » History » Version 12

Per Amundsen, 08/09/2015 05:58 AM

1 1 Per Amundsen
_Added in 1.9.0_
2 3 Per Amundsen
3 6 Per Amundsen
*$addtok(text,token,C)*
4 1 Per Amundsen
5
Adds a token to the end of text but only if it is not already in text.
6
7 10 Per Amundsen
_[[$addtok]] is case-insensitive, see [[$addtokcs]] for case-sensitive version._
8 1 Per Amundsen
9 6 Per Amundsen
*Parameters*
10 1 Per Amundsen
11 6 Per Amundsen
text - Text to add the token to.
12
token - Token to add.
13 11 Per Amundsen
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)
14 6 Per Amundsen
15
*Example*
16
17
<pre>
18 12 Per Amundsen
; Returns a.b.c.d
19 6 Per Amundsen
//echo -ag $addtok(a.b.c,d,46)
20
21 12 Per Amundsen
; Returns a.b.c.d
22 6 Per Amundsen
//echo -ag $addtok(a.b.c.d,c,46)
23
</pre>