Servo control on serial monitor

So is it like, Use an if condition?