0
kicks
A neat way to express multi-clause 'if' statements in C#, C++ or Java
I stumbled upon a neat trick that works in all C-based languages. By composing ternary conditional operators in a particular way, we can express multi-clause if statements in a surprisingly concise and clean way.