chickadee » moremacros » select-with

(select-with PRED EXP ((KEY ...) EXP1 ...) ... [(else EXPn ...)])syntax

This is similar to select (see miscmacros), but the keys are evaluated & PRED is the test.