Error!
Success!

A neat way to express multi-clause 'if' statements in C#, C++ or Java

0
kicks

A neat way to express multi-clause 'if' statements in C#, C++ or Java  (Unpublished)

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.


Kicked By:
Drop Kicked By: