<How to know which condition has failed in a if st...
# stackoverflow
u
How to know which condition has failed in a if statement? How can we know which condition in the if statement has failed in java, kotlin or javascript? I did find this post, which does it with many if statements, but that is not what I wanted! This is what I have: In java boolean a = true; boolean b = false; boolean c = true; boolean d = false; if(a && b && c && d){ } else { // which condition has failed } In kotlin val a = true;...