This is not how for loop works.
Your encountering a While loop case
You need to create an infinite while loop that relies on a boolean flag, as Lindsay_Estabrooks described.
You need an integer Process variable and a boolean Process variable.
In each loop iteration, implement this logic :
If specific result is obtained then change flag value
elseif counter is = to 10 then change flag value