BatVink,
I don't think that you fully understood the problem.
picture using your code snippet in a main gameloop like this
do
For angle = 0 to 350
zrotate object 1, (angle / 10.0)
sync
next angle
` rem rest of game code
sync
loop
Your for-loop would hang up the other parts of the main loop from functioning. Since you have a sync command in the for-loop, the rotation would be see; but anything else that needs to be done in the main loop would have to wait. Add to the fact that if the main loop is timer based; it could really mess things up.
Normally what I do is have an if condition based on a logic flag, and rather than a for-loop, I increment angle a certain amount each time through the main loop. when the target is reached then you have a control prevent that part of the coad from running, until the control flage is reset.