From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/23943 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: 'empty string' test in MP Date: Tue, 29 Nov 2005 22:26:53 +0100 Message-ID: <438CC79D.3070906@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133299845 27128 80.91.229.2 (29 Nov 2005 21:30:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2005 21:30:45 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 29 22:30:40 2005 Return-path: 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 1EhD1t-0002LL-9Y for gctc-ntg-context-518@m.gmane.org; Tue, 29 Nov 2005 22:28:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F119B12819; Tue, 29 Nov 2005 22:28:48 +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 28044-05; Tue, 29 Nov 2005 22:28:48 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C2E4F1280D; Tue, 29 Nov 2005 22:27:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E71D1280D for ; Tue, 29 Nov 2005 22:26:59 +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 28044-04 for ; Tue, 29 Nov 2005 22:26:58 +0100 (CET) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id 7931D1278D for ; Tue, 29 Nov 2005 22:26:57 +0100 (CET) Original-Received: (qmail invoked by alias); 29 Nov 2005 21:26:57 -0000 Original-Received: from i577B8A1B.versanet.de (EHLO [192.168.0.3]) [87.123.138.27] by mail.gmx.net (mp017) with SMTP; 29 Nov 2005 22:26:57 +0100 X-Authenticated: #24293357 User-Agent: Thunderbird 1.5 (Windows/20051025) Original-To: mailing list for ConTeXt users X-Enigmail-Version: 0.93.0.0 X-Y-GMX-Trusted: 0 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:23943 Archived-At: Hi all, I pass a string to a MP graphic using \setMPtext{LABEL}{TEXT}. The string can also be empty, and then no action (for the text) is taken. How can I test in MP, if the given \MPstring{LABEL} is empty? I have tried everything I can imagine in the last one hour, but no success. Not my day... This is the old, not working version if not(\MPstring{LABEL}="") : % is always true. Peter