Taking Input from Virtual pin during a for loop

[Unformatted code removed by moderator]

I am using the Blynk app with esp8266. I am using virtual pins but if I am changing the input value V1 during for loop it is not changing input. I need to take input in between the for loop how can I do this?

@S.M.Shamroze please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this: