Project

General

Profile

Actions

$addtokcs » History » Revision 3

« Previous | Revision 3/10 (diff) | Next »
Per Amundsen, 02/17/2014 09:14 AM


Added in 1.9.0

$addtokcs(text,token,C)

Adds a token to the end of text but only if it is not already in text.

$addtokcs is case-sensitive, see $addtok for case-insensitive version.

Parameters

text - Text to add the token to.
token - Token to add.
C - Ascii value of the character separating the tokens. (You can use $chr(C) to find the ascii value of a character)

Example

;Returns a.b.c.D
//echo -ag $addtokcs(a.b.c,D,46)

;Returns a.b.c.d
//echo -ag $addtokcs(a.b.c.d,c,46)

Updated by Per Amundsen about 10 years ago · 3 revisions

Also available in: PDF HTML TXT