How to overwrite a variable for next loop? SOLVED

The process i am trying to automate is copy and paste in a same page for differnt inputs,which is loaded in a csv. I have used ${VAR} to store a value from target1 and paste it on another target2 and when it should be done for another input again,the old input’s value along with new input’s value gets pasted and due to this i cannot loop and have to do it manually give input one by one…
I made a mistake and i figured it out