# If statement alternative

**URL:** <https://forum.kirupa.com/t/if-statement-alternative/45693>\
**Category:** flash\
**Created:** [March 17, 2004, 5:02am UTC](https://forum.kirupa.com/t/if-statement-alternative/45693 "2004-03-17T05:02:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Afro\_Ninja](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Afro\_Ninja](https://forum.kirupa.com/u/Afro_Ninja)\
**Post date:** [March 17, 2004, 5:02am UTC](https://forum.kirupa.com/t/if-statement-alternative/45693/1 "2004-03-17T05:02:36Z")

</div>

I was reading through various source codes, trying to teach myself more and more AS as usual… and some things brought me to ask this question.

let’s say I place a movie clip on the stage, called gun. would:

if (\_root.gun) {}

return a true statement, simply because a MC called gun exists on the stage?
