I am trying to put in some lines of code using the lstlistings-package but the code differs on conditionals. How can I only change some lines depending on the conditional?
Assume I have the If:
\newif\ifshell. If it is true there should be the following code in a lst-environment:
and a few other lines (which are the same for both, true and false).
\shell is false, there should be
pdfprintsvr -l and the other lines instead.
How can I include the conditional inside the lst-environment? Thanks in advance