# Variable test

**URL:** <https://forum.kirupa.com/t/variable-test/323724>\
**Category:** Uncategorized\
**Created:** [July 14, 2011, 1:25am UTC](https://forum.kirupa.com/t/variable-test/323724 "2011-07-14T01:25:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aequus](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@Aequus](https://forum.kirupa.com/u/Aequus)\
**Post date:** [July 14, 2011, 1:25am UTC](https://forum.kirupa.com/t/variable-test/323724/1 "2011-07-14T01:25:03Z")

</div>

I want to create an if function that queries whether an object’s (in this case a movieclip with its own class) variable is \> a certain amount, for example in plain english “If the fighter’s speed is \>10 then trace yay” but I don’t know how to ask about a variable in a specific class i.e. don’t know how to say “fighter’s”. Could someone post me an example of what that would look like?
