On Wed, 20 Mar 2002, Daniel Joyce wrote:
> Is there some way to do conditional text in Context or Raw tex?
> I am writing a coverletter template, and defining custom commands.
[...]
> vs where there is no contact person
[...]
> Is there anyway to test for empty strings, and write stuff like this?
\def\DoIfEmptyElse#1#2#2{\def\localTest{}\ifx#1\localTest{#2}\else{#3}\fi}
That structure has worked for me in the past. I am curious to know if
there is a better solution, though.
Daniel
--
When I admire the wonder of a sunset or the beauty of the moon,
my soul expands in worship of the Creator.
-- Mohandas K. Gandhi