I have recently discovered LaTeX, trying to experiment wiht it to prepare a complicated industrial document (laboratory test instructions). A typical set of instructions contains a long sequence of standard tests (each identified by a numbering system). Since some tests are repeated a number of times in a test sequence, I have created a system shown in the attached sample, where a single instruction such as \TestDetails{107} calls the necessary instructions for test 107. However none of the routines describing the tests have arguments. I am now facing the problem to introduce options in some of the tests (ie test 107 is to be performed in condition A at some point of the sequence, and condition B at another point, which would require changes in the instructions..) Is this possible with the ifthenelse option taken? if not, what would be the recommended approach?
\documentclass[a4paper, 11pt]{report} % Mode production
\usepackage[utf8]{inputenc} % UTF-8 encoding for code editing
\usepackage[T1]{fontenc} % Usual fonts
\usepackage{ifthen} % Use of logic tests
%----------------------------------------------
\newcommand{\SandAndDust}[0]{%
Some text for sand and dust test.
} %
\newcommand{\VoltageProof}[0]{%
Some text for voltage proof text.
} %
\newcommand{\TestDetails}[1]{%
\ifthenelse{\equal{#1}{100}}{\SandAndDust}{}%
\ifthenelse{\equal{#1}{107}}{\VoltageProof}{}%
}%
\begin{document}
\TestDetails{100}
\TestDetails{107}
\end{document}