I used \newcommand* foo {} to define a command so the user could set it later via \renewcommand* foo {content}. How do I create a conditional statement (if then else) that tests if foo is empty ("{}") or contains anything?
Asked
Active
Viewed 117 times
0
Stefan K.
- 463
\ifx\foo\empty ... \else ... \fishould do the trick. – John Wickerson May 24 '13 at 13:00