8 Feb
2009
8 Feb
'09
7: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/