I'm looking at some code, and wondering how it works. There are several short hand if-else statements with an extra feature:
if(condition) return someVariable ? doThis : elseDoThis;
The code I'm viewing works and processes the entire if-else statement. Can anyone tell me more about the return someVariable portion of this statement? I'd really appreciate it...