For statement not parsing information thru

Hi all,

I’m trying to write a code in a code block :

And it gives me “null” in all the indexes except the last one

Am i missing something ?
Is there a certain scope that i’m missing in my code ?

Tia