Split function usage

with following split calls:

	set_field("x_0",split("\\|","000|111|222",0);
	set_field("x_1",split("\\|","000|111|222",1);
	set_field("x_2",split("\\|","000|111|222",2);

i got the result fields:

image

So how can got this:

x_0: 000
x_1: 111
x_2: 222

let list = split("\\|","000|111|222");
set_field("x_0", list[0]);
set_field("x_1", list[1]);
// etc.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.