I want to fill a cells of a table with only a \item command, and the \begin{itemize} should be automatically inserted.
The following code works :
\newenvironment{matable}[0]{%
\begin{tabular}{l|p{5cm}}
theme & sujets \\ \hline\hline }
{\end{tabular}}
\newcommand{\messujets}[1]{ & \begin{itemize} #1 \end{itemize}\\ \hline}
\begin{matable}
\messujets{\item subject 1 \item subject 2}
\end{matable}
With the command \messujets I start a new line in the table, and I fill the second cell with my \item.
But if the argument of \messujets happens to be empty, LaTeX complains about a missing \item.
To avoid this, I want to have an \ifthenelse test in the cell. My attempt is to replace:
\begin{itemize} #1 \end{itemize}
by
\ifthenelse{\equal{#1}{}}{\begin{itemize} #1 \end{itemize}}
So, it would be :
\newcommand{\messujets}[1]{ & \ifthenelse{\equal{#1}{}}{}{\begin{itemize} #1 \end{itemize}}\\ \hline}
But this produces an error use of \@item does not match its definition which I do not understand...
Any idea?

