Breaking simple non trial loop conditionally online

You can use a variable for nReps but changing it once the loop has started has no effect.