From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27171 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Peter_M=FCnster?= Newsgroups: gmane.comp.tex.context Subject: \doifdefinedelse and \write Date: Fri, 14 Apr 2006 18:37:54 +0200 (CEST) Message-ID: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145032729 27728 80.91.229.2 (14 Apr 2006 16:38:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Apr 2006 16:38:49 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 14 18:38:47 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1FURJl-00036P-Ra for gctc-ntg-context-518@m.gmane.org; Fri, 14 Apr 2006 18:38:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 538211278F; Fri, 14 Apr 2006 18:38:45 +0200 (CEST) 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 18071-05; Fri, 14 Apr 2006 18:38:40 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C5D341278A; Fri, 14 Apr 2006 18:38:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BFC591278A for ; Fri, 14 Apr 2006 18:38:37 +0200 (CEST) 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 11697-08 for ; Fri, 14 Apr 2006 18:38:36 +0200 (CEST) Original-Received: from smtp.cegetel.net (mf00.sitadelle.com [212.94.174.67]) by ronja.ntg.nl (Postfix) with SMTP id 84D381276C for ; Fri, 14 Apr 2006 18:38:36 +0200 (CEST) Original-Received: from gaston.pm (unknown [84.7.235.136]) by smtp.cegetel.net (Postfix) with ESMTP id AF2E51A424E for ; Fri, 14 Apr 2006 18:38:35 +0200 (CEST) Original-Received: by gaston.pm (Postfix, from userid 500) id A87E213C264; Fri, 14 Apr 2006 18:37:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.pm (Postfix) with ESMTP id A3E56148182 for ; Fri, 14 Apr 2006 18:37:54 +0200 (CEST) X-X-Sender: peter@gaston.pm Original-To: ConTeXt list X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:27171 Archived-At: Hello, with the following test-file I expect the output: "Yes No" But the output is: "edef @@lycurrentstate{myTestbla}No edef @@lycurrentstate{myTestblub}No" Where does this come from, and how could I get it right please? \def\myMacro#1{\doifdefinedelse{myTest#1}{Yes}{No}} \def\myTestfile{\jobname-test.tmp} \def\myTestbla{just a test} \starttext \immediate\write18{echo \myMacro{bla} \myMacro{blub} >\myTestfile} \typefile{\myTestfile} \stoptext Greetings, Peter -- http://pmrb.free.fr/contact/