Is there anything wrong with my code?

AnalogIn is going to be a sensor.

Threshold is going to have a number and from that the sensor should decide what to do, threshold is going to be something between max and min sensor value.

The missing } was simply a beginner mistake.

How can I tell it what Reverse is then?