Is there a way to fix or evaluate only once a var inside a loop ?

If I have:
1
2
3
4
for (x=0;x<limit;x++) 
{
limit++;
}

Is there a trick to fix the x<limit statement?
Ok, I know I could assign a var before the loop, but... is there any trick?
Thanks
Nope. If you are incrementing limit in the loop, but don't want it to change in the condition, you have to use a separate variable. No way around it.
Thanks
Topic archived. No new replies allowed.