![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
8 Feb
2009
8 Feb
'09
12:15 p.m.
On Sun, 8 Feb 2009, Alan Stone wrote:
Re: http://wiki.contextgarden.net/System_Macros/Branches_and_Decisions
What kind of emptyness do \doifempty, \doifnotempty, \doifemptyelse test ?
Hello Alan, Here a small test file: \def\Empty{} \def\Macro#1{argument is \doifemptyelse{#1}{empty}{full}} \starttext \quotation{Remember to expand it yourself where needed.} \Macro{}, \Macro{blabla} Nothing: \doifemptyelse{}{empty}{full} \type{\Empty}: \doifemptyelse{\Empty}{empty}{full} \type{all expanded}: \expanded{\doifemptyelse{\Empty}{empty}{full}} \type{with \expandafter}: \expandafter\doifemptyelse\expandafter{\Empty}{empty}{full} \stoptext Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/