# 'if' function on button

**URL:** <https://forum.kirupa.com/t/if-function-on-button/100914>\
**Category:** Uncategorized\
**Created:** [February 3, 2004, 10:20pm UTC](https://forum.kirupa.com/t/if-function-on-button/100914 "2004-02-03T22:20:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Insomniac](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@Insomniac](https://forum.kirupa.com/u/Insomniac)\
**Post date:** [February 3, 2004, 10:20pm UTC](https://forum.kirupa.com/t/if-function-on-button/100914/1 "2004-02-03T22:20:08Z")

</div>

hey, im a little unsure about how to do this - im sure its fairly simple, but i want my button to have a different action depending on whether an mc is playing - basically i have a few buttons, each with their own actions. but if one button has been pressed, id like the other button to close it’s movie before performing its own. i can put in the actions myself, im just unsure how to use the button with an ‘if’ function kinda thing. i hope someone can understand what im saying 😛 and help me out.

cheers
