Possible Duplicate:
Which documentclass is being used?
I want to make a style that would include some specific instructions if the document is using the memoir class, but I don't want those instructions to be included if the document is using another class. I've found some information about if-then statements in LaTeX, but not how to test the document class.