![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
3 Sep
2008
3 Sep
'08
4:41 p.m.
Hi all, I'm trying to define a macro \Command which can either have four or five arguments. If it has five, I want to define them as \Command1[#1][#2][#3][#4]{#5} if it has four, as \Command2[#1][#2][#3]{4#} I thought this would be the way to go: \def\Command{% \doquadrupleempty\doCommand} \def\doCommand{% \iffifthargument% \doquadrupleargument\Command1% \else% \dotripleargument\Command2% \fi} but that gives me errors about "too many }s". So I'm wondering: am I on the wrong track? Can this be done at all? Thanks, and best Thomas