> I use branches for this purpose as well (creating exams). They work > very well, and are scalable to any number of "branches" that you can > turn on and off to create different compiled documents...
Maybe that's an easier, and more elegant, solution than using ifthenelse. You learn something new about how powerful LyX is every day. One advantage of using ifthenelse is that the conditional becomes part of the LaTeX if you export to LaTeX, while branches is a pure LyX solution (I still prefer to have a LaTeX copy of all my documents for compatibility).