|
Ternary Operator question..
|
Why doesn't this work:
variable ? function() : function2();
yet this does:
x = variable ? function() : function2();
The first example never gets processed. It's easier and neater than using
if (var) {
function();
}
else {
function2();
} |
__________________

Coming soon (Hopefully:P)
|
|