
Sparky E. answered 07/08/19
Software Engineer @ J.P. Morgan Chase & Co.
In a conditional statement the comma is treated like a sequence so there is not parse error that happens. So what really happens is that the first operand in this case they're both true, but the first "true" gets evaluated and then the results gets discarded. It then evaluates the second true value and returns the result back.