@txnelson inteprets your question differently than I do.
I think you want to create a series of JSL variables with an index number as a part of the variable name.
You can do that but you'll need to build the entire expression as a string before you try to Parse() it.
Like this:
flow = {"two", "three", "four"};
name1 = "A_one";
For( i = 1, i <= N Items( flow ), i++,
Eval( Parse( "name" || Char( i + 1 ) || "= \!"A_" || flow[i] || "\!";" ) )
);
However, I'm not sure why you'd want to do this instead of using a list or associative array which has the indexing built in.
names = {};
names[1] = "A_one";
For( i = 1, i <= N Items( flow ), i++,
names[i + 1] = "A_" || flow[i]
);
Show( names[1], names[2], names[3], names[4] );
-Jeff