get token(a, b, c, d)


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.

If a does not contain b, a is returned.

If d is -1, the iteration level is used.

Description of Parameters

Parameter

Description

a

Text.

b

Delimiter (use \NL for linefeed).

c

(optional) Escape character.

d

Position of the token to be returned, -1 for the iteration level.

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\