static A doubleBolSwitch(bool a, bool b, A onA, A onB, A onSame) { ret a && !b ? onA : b && !a ? onB : onSame; }