get token()

This function interprets the text a as list of tokens separated by delimiter b and returns the token at position d (starting with 1).

If c is set, the character will be interpreted as the escape character for the delimiter (see examples). If a does not contain b, a is returned.

Parameters


Parameter

Description

a

Text.

b

Delimiter (use \NL for linefeed).

c

(optional) Escape character for the delimiter. See examples.

d

Position of the token to be returned. If you specify -1, the current iteration level (of a repeated node on or under which the function is placed) is used.


Examples


Parameter a

Parameter b

Parameter c

Parameter d

Result

a;b;c;d

;


2

b

a;b;c;d

x


1

a;b;c;d

a\;b;c;d

;

\

2

c

a\;b;c;d

;

\

1

a;b

a\\;b;c;d

;

\

2

b

a\\;b;c;d

;

\

1

a\