# Need help with "if statement"

**URL:** <https://forum.kirupa.com/t/need-help-with-if-statement/101103>\
**Category:** Uncategorized\
**Created:** [February 5, 2004, 10:57pm UTC](https://forum.kirupa.com/t/need-help-with-if-statement/101103 "2004-02-05T22:57:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanc](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@seanc](https://forum.kirupa.com/u/seanc)\
**Post date:** [February 5, 2004, 10:57pm UTC](https://forum.kirupa.com/t/need-help-with-if-statement/101103/1 "2004-02-05T22:57:18Z")

</div>

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?
