On: Tue, Jul 17, 2007 at 04:07:06PM -0400,Bob Cronin Wrote:

} 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.

With all due respect for Mike, I think I would use a lookup stage.  Feed
the list into one input and a literal "BOB" into the other.  Then the 2
outputs, the found output will have either "BOB" or nothing.  If not
empty, use it.  Else pick one of the list items.

--
Rich Greenberg  N Ft Myers, FL, USA richgr atsign panix.com  + 1 239 543 1353
Eastern time.  N6LRT  I speak for myself & my dogs only.    VM'er since CP-67
Canines:Val, Red, Shasta & Casey (RIP), Red & Zero, Siberians  Owner:Chinook-L
Retired at the beach                                     Asst Owner:Sibernet-L

Reply via email to