Need help with "if statement"

im trying to add controls to a simple movie clip. i want a button when clicked once to make an object (instance name “hand”) to slide forward, and when the button is clicked again i want the object to slide back into the orig. position. i know i have to use if statements to do this but i dont know how to do the script (i know it has to be written for the button and not the clip also). anyone know how to do this simple stuff?