> Am 09.05.2015 um 12:36 schrieb Pablo Rodriguez <oi...@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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to