From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12621 Path: main.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: variables Date: Tue, 15 Jul 2003 14:59:44 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <3F13FAC0.4040502@arcor.de> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1058274146 8192 80.91.224.249 (15 Jul 2003 13:02:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2003 13:02:26 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Tue Jul 15 15:02:24 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19cPR6-00024n-00 for ; Tue, 15 Jul 2003 15:01:40 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 0899510B33; Tue, 15 Jul 2003 15:02:35 +0200 (MEST) Original-Received: from mail-in-02.arcor-online.net (mail-in-02.arcor-online.net [151.189.21.42]) by ref.ntg.nl (Postfix) with ESMTP id AB6A410B32 for ; Tue, 15 Jul 2003 14:58:52 +0200 (MEST) Original-Received: from arcor.de (dialin-145-254-092-232.arcor-ip.net [145.254.92.232]) by mail-in-02.arcor-online.net (Postfix) with ESMTP id 8B2E324F56 for ; Tue, 15 Jul 2003 15:00:19 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en Original-To: NTG-ConTeXt Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:12621 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12621 I want to test, if a given variable is empty or not. I tried the following, but the test is always false. Is this a bug or a feature ;) Any help is welcome. \starttext \setvariables[test] [first=, second=something,] \def\TestVAR#1{\getvariable{test}{#1}} \if\TestVAR{first}\empty % The variable test:first is empty.\else The variable test:first contains \TestVAR{first}.\fi \if\TestVAR{second}\empty % The variable test:second is empty.\else The variable test:second contains \TestVAR{second}.\fi \stoptext Regards, Peter