I have the following macro:
\newcommand{\INFERRULE}[3][]{%
\ensuremath{\inferrule{\mathstrut #2}{\mathstrut #3}\ifx\\#1\\\else\enskip(#1)\fi}}
I want to make it sensitive to \\ so that I can write commands such as:
\[
\INFERRULE[i \to j]{[i, i, j, k] \\ [i, k, j, j]}{[i, i, k, j]}
\]
However, the way I defined the macro, it is ignoring the \\. Is there a way to fix it?

\inferrule: the answer will depend on what that command does? (or, even better, provide a full minimal working example, starting with\documentclass{...}and ending at\end{document}) – Bruno Le Floch Mar 12 '11 at 16:05\inferrulecomes from themathpartirpackage. @kloop: It might help if you explain what you want the output to look like, as well as what you want to write in source. – Matthew Leingang Mar 12 '11 at 17:30