From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76108 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: \doifolderversionelse Date: Thu, 10 May 2012 12:00:31 +0200 Message-ID: <4FAB91BF.5010508@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1336644043 7753 80.91.229.3 (10 May 2012 10:00:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 May 2012 10:00:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 10 12:00:42 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SSQAr-0007DI-Hx for gctc-ntg-context-518@m.gmane.org; Thu, 10 May 2012 12:00:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9784F101E6; Thu, 10 May 2012 12:00:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id o0aN++XtawAi; Thu, 10 May 2012 12:00:39 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 27A6A101E0; Thu, 10 May 2012 12:00:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7C09B101E0 for ; Thu, 10 May 2012 12:00:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PxLz+YXar4Dq for ; Thu, 10 May 2012 12:00:37 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id CC14C101CF for ; Thu, 10 May 2012 12:00:37 +0200 (CEST) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with SMTP id q4AA0a7M004650 for ; Thu, 10 May 2012 12:00:37 +0200 Original-Received: (qmail invoked by alias); 10 May 2012 10:00:36 -0000 Original-Received: from ip-178-200-48-212.unitymediagroup.de (EHLO [192.168.178.3]) [178.200.48.212] by mail.gmx.net (mp017) with SMTP; 10 May 2012 12:00:36 +0200 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX18Sy+NAcycSJ27nLxyrQxXty754poeodXVuqoin6E j2O0ezS2NWBawq User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 X-Enigmail-Version: 1.4.1 X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.23; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NH8a0BX1 - 9d725a0004c4 - 20120510 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:76108 Archived-At: Hi, I tried to handle some version changes with \doifolderversionelse. Sadly it does not work here. Example: \starttext \doifolderversionelse\contextversion{1010.10.10} {OLDER} {OKAY}% => OLDER \doifolderversionelse\contextversion{2020.20.20} {OLDER} {OKAY}% => OKAY \doifolderversionelse\contextversion{2020} {OLDER} {OKAY}% => OKAY \stoptext Tested with ConTeXt version 2011.11.08 and 2012.05.08 Result is always "older". Regards, Peter ___________________________________________________________________________________ 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 ___________________________________________________________________________________