Sample Y-script below and attached:
Thanks for the example. I think i can work with the example you provided and play around with it until I get my desired result.
The Polish Notation is kinda hard to read btw, if you are not used to it.
I am more used to stuff like this
void init (int elem[], int nelems)
{
int i;
for (i=0; i < nelems; i++)
elem[i] = i;
}