From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59850 Path: news.gmane.org!not-for-mail From: Vyatcheslav Yatskovsky Newsgroups: gmane.comp.tex.context Subject: checking for an undefined constant Date: Fri, 25 Jun 2010 16:06:34 +0300 Message-ID: <4C24A9DA.2080608@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1277471218 15024 80.91.229.12 (25 Jun 2010 13:06:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 25 Jun 2010 13:06:58 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 25 15:06:55 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OS8cQ-0008Ct-G8 for gctc-ntg-context-518@m.gmane.org; Fri, 25 Jun 2010 15:06:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9CE1BC9B1A; Fri, 25 Jun 2010 15:06:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id q09KWTz0j6Yi; Fri, 25 Jun 2010 15:06:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DA394C9AFD; Fri, 25 Jun 2010 15:06:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B95CAC9AFD for ; Fri, 25 Jun 2010 15:06:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id L8842nR275yt for ; Fri, 25 Jun 2010 15:06:44 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by balder.ntg.nl (Postfix) with ESMTP id 29213C9A8A for ; Fri, 25 Jun 2010 15:06:43 +0200 (CEST) Original-Received: by fg-out-1718.google.com with SMTP id 19so1945817fgg.2 for ; Fri, 25 Jun 2010 06:06:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=JuGvBT6oBrb3jtGbY+DKcVbx0m+vngasVcAsAxylQzc=; b=EFgwzszTKJJlWoZevvOmvhdCFwPHPpwWa4Ut/Wf4miOztCEXxhe9Gqq/+If4q0lcV9 2pyr6Q7ydHquMkAq+akHFEGB09ny7zYVAkp9qexdlZk5lJtGXzBDeFWD37XxB93Ed6lX 1rdp4MNJCKI21GT0zCik2FmBNQx+aWeZclUsM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=C9SnI06RQz0d1sQK1xeF5S51cptaGSR5fDlLO9A2o+NeCds3UdgJZFRr5o0onsp7Z9 o/KHhCMrG/ftypC+l6mGqyuZWE6ceyAvcY6utb8zzHS/GBXODXz8KASZ7n5nZU0RMKLm 89UQiKaohJGYxbuTaSk61SRiQocQA+CI6fn1M= Original-Received: by 10.223.113.20 with SMTP id y20mr541068fap.83.1277471203563; Fri, 25 Jun 2010 06:06:43 -0700 (PDT) Original-Received: from [10.0.22.59] ([194.242.119.74]) by mx.google.com with ESMTPS id e16sm43534413fak.8.2010.06.25.06.06.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 25 Jun 2010 06:06:42 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:59850 Archived-At: Hi, Now I check for an undefined constant like this: \ifx \Homeworks \undefined \else Home works -- {\Homeworks} \fi The useful part is in "else" clause. How to swap this check so that "else" is not needed? Rgrds, Vyatcheslav ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________