if(myservo.attached) would be true if it's attached so it goes to this if and there you say "no", and would go to else and say yes if it was not atached :S
servo.attach(7);//servo is attached
if(servo.attached()){ //will enter this if because servo is atached
println("yes");//print yes because yes, servo is atached
}else{
println("no");//print no because servo is not atached
}