Hi
It's surprising to me there hasn't been such discussion in the past.
I'm looking for 'foreach' alternative in Powerscript. I mean: In my app I use multirow selection everywhere it's possible. Therefore iterating through for-next loop is one of the most common action I usually do. Wouldn't be nice to have a special command just for making code smaller and safer?
The idea of foreach is taken from Lua language which I see very useful:
string ls_array[]
string ls_var
...
foreach ls_var in ls_array
//do something with ls_var
next
Second idea - taken from C++ - just enhancement of for-next loop:
string ls_array[]
...
long ll_n
for ll_n in ls_array
//do something with ls_array[ll_n]
next
What's your opinion?