That isn't more concise than
foo = bar ? 1 : baz ? 2 : 3;
But it's more readable, and that's what matters.