problematica con cambio valore variabile

test effettuato, ma non funziona