From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78484 Path: news.gmane.org!not-for-mail From: "Rogers, Michael K" Newsgroups: gmane.comp.tex.context Subject: Re: Conditionals Date: Sat, 29 Sep 2012 01:40:18 +0000 Message-ID: <1E5A50C784A8AD44B420EF5A1E9B2806A44EB568@e14mbx23n.Enterprise.emory.net> References: 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: ger.gmane.org 1348882829 21386 80.91.229.3 (29 Sep 2012 01:40:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Sep 2012 01:40:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 29 03:40:35 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 1THm2j-0003Lb-Pg for gctc-ntg-context-518@m.gmane.org; Sat, 29 Sep 2012 03:40:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CF0B7101FE; Sat, 29 Sep 2012 03:40:27 +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 uGgvzdYcwhnZ; Sat, 29 Sep 2012 03:40:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 5FFB8101F4; Sat, 29 Sep 2012 03:40:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C262C101F4 for ; Sat, 29 Sep 2012 03:40:25 +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 jP68iWqm2SIY for ; Sat, 29 Sep 2012 03:40:23 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 94DBB101EC for ; Sat, 29 Sep 2012 03:40:23 +0200 (CEST) Original-Received: from ws-mr3.cc.emory.edu (ws-mr3.cc.emory.edu [170.140.50.233]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8T1bRQH023327 for ; Sat, 29 Sep 2012 03:37:28 +0200 Original-Received: from e14edge2w.Emory.Edu (emoryfloatdmz.cc.emory.edu [170.140.52.254]) by ws-mr3.cc.emory.edu (8.13.8/8.13.8) with ESMTP id q8T1eJep022311 for ; Fri, 28 Sep 2012 21:40:19 -0400 Original-Received: from E14CH4W.Enterprise.emory.net (10.240.10.116) by e14edge2w.Emory.Edu (170.140.108.22) with Microsoft SMTP Server (TLS) id 14.2.318.1; Fri, 28 Sep 2012 21:40:19 -0400 Original-Received: from E14MBX23N.Enterprise.emory.net ([fe80::b473:ef05:b37f:5ccd]) by e14ch4w.Enterprise.emory.net ([::1]) with mapi id 14.02.0318.001; Fri, 28 Sep 2012 21:40:18 -0400 Thread-Topic: [NTG-context] Conditionals Thread-Index: AQHNndnPTnL3TuX/m02CF6A0oq+SIZegzhoA In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [170.140.30.131] Content-ID: X-Emory-MailScanner-Information: Please contact the ISP for more information X-Emory-MailScanner-ID: q8T1eJep022311 X-Emory-MailScanner: Found to be clean X-Emory-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-0.813, required 8, autolearn=disabled, RP_MATCHES_RCVD -0.81) X-Emory-MailScanner-From: mroge02@emory.edu X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=170.140.50.233; country=US; region=GA; city=Atlanta; postalcode=30322; latitude=33.7952; longitude=-84.3248; metrocode=524; areacode=404; http://maps.google.com/maps?q=33.7952,-84.3248&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WI4NBsev - 57603c2198f6 - 20120929 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78484 Archived-At: On Sep 28, 2012, at 8:31 PM, Troy Henderson wrote: > I have a list of numbers, > > 2, 6, 7, 8, 12, 14, 18, 20, 186, 188, 316, 318, 354, 372, 376 > > that I would like to use as exceptions in a \dostepwiserecurse loop. That is, within the loop if \recurselevel is NOT EQUAL to either of these numbers, then I want to do something -- otherwise, I simply increment \recurselevel. > > I would appreciate an example of how to do this. > > Thanks, > > Troy Henderson \starttext \dorecurse{400} {\doifnotinset{\recurselevel}{2, 6, 7, 8, 12, 14, 18, 20, 186, 188, 316, 318, 354, 372, 376} {\recurselevel, }} \stoptext Michael ________________________________ This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). ___________________________________________________________________________________ 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 ___________________________________________________________________________________