Variable test

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?