While loop to infinite

actually not. they are doing both the same: writing a value to a servo.

my code should write two values to two servos at a time. the for loop from the arduino playground has "fixed" iterations, while my while-loop in contrast is feeded with diffrent "step-sizes" to iterate the actual value.
Since the target value can either be bigger or smaller than the actual value, the iteration can be positiv or negativ the same thing would work on the for loop by using an extra if

if (actualValue< targetValue)
{
for(actualValue; actualValue>targetValue,actulValue+step ){ write servo here + delay}
}

else
{
for(actualValue; actualValue<targetValue,actulValue-step ){ write servo here + delay}....
}

the steps themself would aswell work in the for-loop because one can easily iterate more than one value
but in the end you are write those code bits ar not the same in many ways.
thought that somebody could help me sorry to bother you..
Anyway the actual while made me ask a question... thought that you are not interested in looking at the baackground.