# Basic: How can i check for "a type of class"

**URL:** <https://forum.kirupa.com/t/basic-how-can-i-check-for-a-type-of-class/254456>\
**Category:** Uncategorized\
**Created:** [March 12, 2008, 11:20am UTC](https://forum.kirupa.com/t/basic-how-can-i-check-for-a-type-of-class/254456 "2008-03-12T11:20:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grandpaw\_broon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/grandpaw_broon/32/3985_2.png) [@grandpaw\_broon](https://forum.kirupa.com/u/grandpaw_broon)\
**Post date:** [March 12, 2008, 11:20am UTC](https://forum.kirupa.com/t/basic-how-can-i-check-for-a-type-of-class/254456/1 "2008-03-12T11:20:49Z")

</div>

hi there people!

I am after some help with regards to a problem.

class AbstractModule

class FirstModule extends AbstractModule  
class SecondModule extends AbstractModule  
class ThirdModule extends AbstractModule

If i have these classes and in my main class i have:

var module:AbstractModule = new FirstModule();

Then how can i later base a conditional on if (module == FirstModule). I know this must be pretty basic but i am lost for the terms to search for.

Thanks 😃
