[NTG-context] issue with \doifdefined

Wolfgang Schuster schuster.wolfgang at gmail.com
Sat May 9 12:59:01 CEST 2015


> Am 09.05.2015 um 12:36 schrieb Pablo Rodriguez <oinos at gmx.es>:
> 
> Dear list,
> 
> I have the following sample:
> 
>    \def\abcde{123}
>    \starttext
>    \doifdefinedelse{\abcd}{defined}{undefined}
>    \stoptext
> 
> \doifdefined crashes when the command isn’t defined.
> 
> Sorry, but isn’t this command supposed to check whether the command is
> defined or not?

You have to omit the backslash in the first argument of the command, e.g. \doifdefinedelse{abcd}{…}{…}

Wolfgang


More information about the ntg-context mailing list