How to test for movie clip position

hi,
sorry for very basic question but I am stuck.

I need to test for the x position of a movie clip and if its in place a do something otherwise if its in position b do something else. Can you tell me how to test for this?

Thank you.