Object Movement Direction

I want to apply the following condition.
If the object is dragged toward the right
then some conditions run
If the object is dragged towards the left
then other conditions are applied.

I’m using the: angle of displacement is 0 for detecting right movement
and angle of displacement to 180 for detecting left movement