A configurable replacement for multiple IFs