Arduino Uno Ultrasonic Sensor and direction detection

.

Direction == 200;

Is that meant to be an assignment?

You're mixing up = and == as Awol says. Here's another example

      Vertical == Vertical + 1;

That does nothing at all. Use = instead as you have elsewhere.

"Direction" appears to be a function pointer - you cannot assign to it.