\documentclass{minimal}

\newif\ifmytest

\begin{document}

\ifmytest
True
\else
False
\fi

\end{document}
