3 ms·
I honestly struggle to understand how a traditional ternary like this isn't obvious. The bit before the question mark is the condition (er, like a question, wh
by bshimmin 9y ago
I honestly struggle to understand how a traditional ternary like this isn't obvious. The bit before the question mark is the condition (er, like a question, which ends with a question mark), then the other two bits are for true and false in the order you would expect.
I will freely admit I try and avoid nested ternaries, which I personally find hard to read.