I'd like to conditionally do some things (like input a file) depending on if a specific class option was passed. For example, I'd like to have an "instructor" option to the class that would input a file of instructor notes. Something like:
\documentclass[instructor]{book}
\begin{document}
\if@instructor
\input{instructor-notes}
\fi
Rest of stuff
\end{document}
Is there some code I can put in the preamble to set something (maybe an ifthen boolean?) based on if the instructor option is passed to the class?
My goal in doing this is to make it trivial for someone to change the file to include the instructor portions of the book. If what I'm trying to do above is an ugly way to do it, I'd love to hear a more elegant way!