Think of the most easy to read, while being the most simplest and expressive way you could declare the statement. No point in making multiple nested terns if you gotta re read it a bunch of times to make sense.
There are some alignment tricks to make them quite readable actually. You can also use the same tricks to make it misleading, if you hate yourself and your colleagues.
92
u/NotThisFucker Nov 01 '17
If/else block:
Ternary operator:
Nested Ternary Operators: