At 12:08 AM 3/20/2002 -0600, you wrote:
>Is there some way to do conditional text in Context or Raw tex?

\startmode[blabla]
some code
\stopmode

\enablemode[blabla]

\doifmodeelse{blabla}{...}{...}

>I am writing a coverletter template, and defining custom commands.
>
>Nils Bohr
>Human Resources
>Yoyodyne Inc.
>300 Foo Rd,
>New Fenwickle, NJ, 55555
>
>         Dear Nihls Bohr:
>
>vs where there is no contact person
>
>Human Resources
>Yoyodyne Inc.
>300 Foo Rd,
>New Fenwickle, NJ, 5555
>
>         Dear Sir or Madam:
>
>  Is there anyway to test for empty strings, and write stuff like this?

\doifelse{this}{that}{equal}{not equal}

there's a lot more like this (see cont-sys.tex or texexec --modu --pdf 
cont-sys.tex)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                                   fall-back web server: 
www.pragma-ade.nl
-------------------------------------------------------------------------

Reply via email to