Get words in a list

Hi.

I use this to get userInput in a list:

(%ANY_WORD.SCRIPT )^{Variable1=_.getUserInputWords().collect{it}.join(’ ')}

My goal is;

Have this as a array with one word in each so I can use sublist and get one word at the time. And use offset to trigger the next word.

Hi Raquell,

I think you don’t need .join(' ') because it will give you a string instead of an array. Btw, you should add a backslash before the “}” if you want to use curly brackets within a propagation script like this:
(%ANY_WORD.SCRIPT )^{Variable1=_.getUserInputWords().collect{it\}}