Here is a short example script, which should do multiple assignments to list elements.
It works when both sides of the assignment are direct lists :
{X,Y}={11,22};
We would like to generalize this so that both sides of the assigment can be variables.
X = .;
Y = .;
D = {X, Y};
B = {4, 55};
C = {{}, {}};
C[1] = D;
C[2] = B;
{X, Y} = C[2]; //works as multiple assignments
Print( X, Y );
// How can the left hand side also use a variable??
//e.g. C[1]=C[2] similar to the following
The idea is to use this technique to return many object references from a function which changes the status of a window. Thus we want to return a list of object names and object references from the function and assign those in the caller function. The main though is not to use any hardcoded names.