Joel via ntg-context schrieb am 21.12.2021 um 18:51:
[...]
\define[3]\ifisempty{%
\setbox0=\hbox{#1\unskip}%
\ifdim\wd0=0pt
#2%
\else
#3%
\fi
}%
No need for your own command because ConTeXt already provides
\doifemptyelse which does the same thing.
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________