Coordinates Function

Coordinates Function

Is there a way to write a function that would be....

If the coordinates of an image are _____ then do this ______ ?