Project

General

Profile

Actions

$addtok » History » Revision 7

« Previous | Revision 7/15 (diff) | Next »
Per Amundsen, 02/17/2014 09:12 AM


Added in 1.9.0

$addtok(text,token,C)

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

$addtok is case-insensitive, see $addtokcs for case-sensitive 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 $addtok(a.b.c,d,46)

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

Updated by Per Amundsen almost 11 years ago · 7 revisions

Also available in: PDF HTML TXT