Suppose I have a LaTeX document, which uses a conditional. Ie.
\ifdefined\submit [....] \else [....] \fi
So, if we have, say, defined
then the first part of the conditional is parsed (or whatever the right term is), otherwise the second part is.
Is there some way within TeX, to postprocess the document to strip out all the conditionals, and only include the parts corresponding to
\submit is defined and the other parts if not? It is not a big deal, but was curious whether such a thing is possible.