as we know that first the condition within brakect will evaluate first, but in your case u use 2 value seperater by comma operater. the comma operater evaluated from left to right.
on evaluation it find 0 as last now it keep 0 as argument of if condition.
as we no that 0 means false that's why this result comes.