pippo = 1;
nome = "pippo";
valore = window(nome);

oppure

valore = eval(nome);

ciao