if (x==[glow]3[/glow]){ int currentPos = myservo[glow]3[/glow].read();
This screams "array" and "for" loop.