I have following command definition (it's entry of an entrylist) which works fine:
\newcommand{\entry}[4]{%
#1&\parbox[t]{11.2cm}{%
#2%
\hfill%
#3%
\\#4%
}\\}
Now I have a test case when 4th parameter can be empty. In that case I don't want to dispaly the new line defined before it. I've tried the following approach:
\newcommand{\entry}[4]{%
#1&\parbox[t]{11.2cm}{%
#2%
\hfill%
#3%
\ifthenelse{\isempty{#4}}{}{\\#4}%
}\\}
but it gives me an error:
Undefined control sequence. ^^I{test test2}
Missing number, treated as zero. ^^I{test test2}
Missing = inserted for \ifnum. ^^I{test test2}
Missing number, treated as zero. ^^I{test test2}
Could you please help?
\usepackage{xifthen}
,\isempty
was undefined.