$addtokcs » History » Version 3
Per Amundsen, 02/17/2014 09:14 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | 3 | Per Amundsen | *$addtokcs(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 | 3 | Per Amundsen | [[$addtokcs]] is case-sensitive, see [[$addtok]] for case-insensitive version. |
8 | 1 | Per Amundsen | |
9 | 3 | Per Amundsen | *Parameters* |
10 | 1 | Per Amundsen | |
11 | 3 | Per Amundsen | text - Text to add the token to. |
12 | token - Token to add. |
||
13 | C - Ascii value of the character separating the tokens. (You can use [[$chr]](C) to find the ascii value of a character) |
||
14 | |||
15 | *Example* |
||
16 | |||
17 | <pre> |
||
18 | ;Returns a.b.c.D |
||
19 | //echo -ag $addtokcs(a.b.c,D,46) |
||
20 | |||
21 | ;Returns a.b.c.d |
||
22 | //echo -ag $addtokcs(a.b.c.d,c,46) |
||
23 | </pre> |