I need to build one environment for proofs in my lessons.
\begin{proof}
...
\end{proof}
This environment could have one content containing one macro named \lines like in the following example. \lines{n} draws n horizontal rules on which the pupils can write during the lesson.
\begin{proof}
bla, bla,...
\lines{4}
bla, bla,...
\lines{7}
bla, bla,...
\end{proof}
I would like to display,or not, proof environments that contains one or more macros \lines so as to have two versions of my lessons : one for the pupils and one showing only texts that I've typed.
Is it possible ?
More precisely, I want to not display the entire proof environment if the \lines macro is used.

proofenvironment if the\linesmacro is used, or do you want a method to change the\linesmacro to do nothing? – Peter Grill Apr 04 '12 at 18:57\linesmacro is used. I've updated my question. – projetmbc Apr 04 '12 at 19:02proofenvironment. Otherwise, interaction with packages likeamsthmorntheoremmight be required. – Werner Apr 04 '12 at 19:05amsthmorntheoremthat seem to be the good choices. What is the better one ? My proof environment would be a standard one with one left square at the end. – projetmbc Apr 04 '12 at 19:07