\documentclass{article} %\newcommand*{\DEBUG}{}% \begin{document} \ifdefined\DEBUG DEBUG was on \else DEBUG was off \fi \end{document}