Can you save directly from storetext to an array?

Right now i do:

storetext
xpath=//**************************
var1

and then

executescript_sandbox
return new array (${var1})
array

there is any way to do something like this?

storetext
xpath=//*************************1
array[1]

storetext
xpath=//*************************2
array[2]

storetext
xpath=//*************************3
array[3]

Please refrain to talk bout typos, its just example, i know how to write the code, i dont want answers like: your code dont work because you forgot the semicolon, its pseudocode, not code.

Thank you.

This not yet possible. You need executescript or executescript_sandbox to assign a value to an array cell ( = as you do now in your code).