How to make the camera go only in one direction?

so im making a game, and i want to be able to walk on a platform to one side, but when you try to walk back to the other side you cant/the camera doesnt follow you. anyone know how to do it?

Basically your going to figure out if your camera objects x is less then your players, if so a switch is turned off and it doesn’t follow him.

Heres a quick example I whipped up: