There're likely more elegant ways, but what occurs offhand: ... '|a:Pick w1 == /BOB/', '|c:not count lines', '|Pick w1 == /0/', '|d:dam', '?a:', '|buffer', '|d:', '|e:faninany', '|Stem userlist.', '?c:', '|e:'
Mike Harding EDS VM National Capability 134 El Portal Place Clayton, Ca. USA 94517-1742 * phone: +01-925-672-4403 * Fax: +01-925-672-4403 * mailto:[EMAIL PROTECTED] * <mailto:[EMAIL PROTECTED]> (personal) Note: For 2007, I am off on Fridays with even Julian dates and Mondays with odd ones. -----Original Message----- From: CMSTSO Pipelines Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Bob Cronin Sent: Tuesday, July 17, 2007 1:07 PM To: [email protected] Subject: Use entire list unless it contains a certain item I have an application that needs to choose a userid from a list. However, if the list contains a certain userid (say, one called BOB), it should always choose BOB and ignore the others. I've come up with a way to do this that works, but it feels a bit kludgy to me. Without revealing how I did it, I'd like to solicit other approaches from you all (to see how well or poorly I did by myself ;-). The output should be stored in a stem. The stem should have all the userid's in it, unless BOB was one of them in which case it should only have one entry, the one for BOB. Thanks in advance for your insights.
