Maybe I should have written it,

while (coils_on_right)...
_________________________
Glenn