A multi-way if