Ultrasonic sensor and servo motor if statement

Hi, I'm having issues with my if statement. I'm trying to make is so my servo motor will only move if the distance is <10 cm if not the motor shouldn't activate at all. The sensor and motor work individually but its just the if statement so they work together. Hopefully someone has a solution. Here is my code:

#include <Servo.h>
/* After including the corresponding libraries,
   we can use the "class" like "Servo" created by the developer for us.
   We can use the functions and variables created in the libraries by creating 
   objects like the following "myservo" to refer to the members in ".".*/

Servo myservo;
//it created an object called myservo.
/*  you can see Servo as a complex date type(Including functions and various data types)
    and see myservo as variables.               */

#include "SR04.h"

#define TRIG_PIN 12
#define ECHO_PIN 11 

SR04 sr04 = SR04(ECHO_PIN,TRIG_PIN);
long a;

void setup(){
   Serial.begin(9600);//Initialization of Serial Port
   delay(1000);

  /*"attach" and "write" are both functions,
     and they are members contained in the complex structure of "Servo". 
     We can only use them if we create the object "myservo" for the complex structure of "Servo".
  */
  myservo.attach(3);//connect pin 3 with the control line(the middle line of Servo) (9)
  myservo.write(180);// move servos to center position -> 90°
} 
void loop(){
a=sr04.Distance();
Serial.print(a);
Serial.println("cm");//The difference between "Serial.print" and "Serial.println" 
                     //is that "Serial.println" can change lines.
delay(200);

//  
if (Serial.print1n state >10cm){
   myservo.write(90);// move servos to center position -> 90°
   delay(500);
   myservo.write(200);// move servos to center position -> 60°
   delay(500);
  //  myservo.write(90);// move servos to center position -> 90°
  //delay(1000);
  //myservo.write(200);// move servos to center position -> 120°
  //delay(5000);
}

}

Are you sure this compiles without error? You have used the number 1 instead of the letter l in println, also you have written >10cm which probably does not compile. Anyhow, why not compare if a > 10 if (a >10){...
There might be other errors as well.

Ill try that and see what happens, honestly I'm abit lost because I'm new to Arduino and I've been set a task and basically left to figure out how to use this in a week. Thank you!

OMG it workssss thank you so much