Controlling servo 360 degree(clockwise and anti clockwise) with "if statement"

I am facing a problem to control my 360 degree servo motor using arduino by “if statement” and the input will be potentiometer.

For and example, “if the analogRead<200” i want the servo motor to rotate clockwise. “If the analogRead>201” i want the servo motor to rotate anti clockwise.

P/S: i have tried a codings such as “Map”. But i want to control my servo motor using “if statement”. I also have attached the coding file.

Advance thanks for who ever will guide me.

Thank you.

jhgkjghkjhk.ino (375 Bytes)

I am facing a problem to control my 360 degree servo motor using arduino by "if statement" and the input will be potentiometer.

What IS the problem?