[OS X TeX] ifthenelse and an empty value

Ueliisa ueliisa at gmx.net
Tue Apr 26 10:54:18 EDT 2005


I try to make an \newcommand that could have 3 or 4 parameters.
With \ifthenelse I want check about is the 4. value set or not an then 
use another command set:

\newcommand{\newcmd}[4]{\ifthenelse{#4={}}{#1 - #2 - #3}{#1 - #2 - #3 - 
#4}

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list