From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47330 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Peter_M=C3=BCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: \doif(not)empty(else) Date: Sun, 8 Feb 2009 20:15:25 +0100 (CET) Message-ID: References: <326847810902080929ibdf1901y6e29b57e1a3b05c7@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1234120636 11966 80.91.229.12 (8 Feb 2009 19:17:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2009 19:17:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 08 20:18:30 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LWFAk-0002dH-Dl for gctc-ntg-context-518@m.gmane.org; Sun, 08 Feb 2009 20:18:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E7ABD1FB64; Sun, 8 Feb 2009 20:17:06 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29083-03; Sun, 8 Feb 2009 20:16:08 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BAF361FADF; Sun, 8 Feb 2009 20:16:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 44EC91FADF for ; Sun, 8 Feb 2009 20:16:07 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29334-03 for ; Sun, 8 Feb 2009 20:15:31 +0100 (CET) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by ronja.ntg.nl (Postfix) with ESMTP id C2BC21FADB for ; Sun, 8 Feb 2009 20:15:30 +0100 (CET) Original-Received: from smtp20.orange.fr (smtp20.orange.fr [193.252.22.29]) by filter4-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n18JFTkv027828 for ; Sun, 8 Feb 2009 20:15:30 +0100 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2018.orange.fr (SMTP Server) with ESMTP id 7B9D41C00099 for ; Sun, 8 Feb 2009 20:15:26 +0100 (CET) Original-Received: from gaston.couberia.bzh (ARennes-358-1-117-67.w92-129.abo.wanadoo.fr [92.129.28.67]) by mwinf2018.orange.fr (SMTP Server) with ESMTP id 539C61C00088 for ; Sun, 8 Feb 2009 20:15:26 +0100 (CET) X-ME-UUID: 20090208191526342.539C61C00088@mwinf2018.orange.fr Original-Received: by gaston.couberia.bzh (Postfix, from userid 1000) id BFDBD301D8; Sun, 8 Feb 2009 20:15:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.couberia.bzh (Postfix) with ESMTP id A9D13301D1 for ; Sun, 8 Feb 2009 20:15:25 +0100 (CET) X-X-Sender: peter@gaston.couberia.bzh In-Reply-To: <326847810902080929ibdf1901y6e29b57e1a3b05c7@mail.gmail.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=193.252.22.29; country=FR; region=A7; city=Moulineaux; latitude=49.3500; longitude=0.9667; http://maps.google.com/maps?q=49.3500,0.9667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 176691645 - b7eb2ade06de X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:47330 Archived-At: 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/ ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________