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

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 :smiley: