For the future, please post code in a formatted code block. Don't post pictures of code. Nobody can run a picture of code. They have to sit there and manually retype the whole thing, often unintentionally omitting or adding typos.
If I understand you correctly, you're trying to change the variable that's controlling the loop exit. How about something like this?
I have no idea what this code is intended to do, but bear in mind that this would now mean that variableundertest is recalculated on every pass through the loop.