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
On Sep 28, 2012, at 8:31 PM, Troy Henderson
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).
participants (2)
-
Rogers, Michael K
-
Troy Henderson