I want to detect whether a parameter is an empty string.
Here is the illustration.
Code: Select all
\documentclass{article}
\usepackage{ifthen}
\newcommand\print[1][]
{%
\ifthenelse{\equal{#1}{}}% It does NOT work
{EMPTY}
{#1}
}
\begin{document}
\print
\print[fulltime]
\end{document}
Thank you in advance.
hayashi