Cond1 // if this
? Result1 // return this
: cond2 // else if this
? Result2 // return this
: cond3 // else if this
? Result3 // return this
: ResultElse // else return this
It's funny how people have so many different preferences for ternary formatting. I can't think of any other operator that would have tens of different format prefs.