Servo move to a location, then stop

Swing and a hit! That got it.

Do you mind if I ask what the 'flag' bits of the code are/are for?