Save variable in a loop

Hello,

Thank you for your answer but I don’t understand how it works and the Google translation does not help me. Is there a simpler example ?

Thank you.