I found some js code that looks something like this:
if((condition 1) && (condition 2 == condition 3) && ((condition 4 && condition 5) && ( condition 6 == condition 7) || ((condition 8 && condition 9) && ( condition 10 == condition 11)) ))
Will the following code evaluate as true or false if the expression (condition 4 && condition 5) evaluates as false? And why does it evaluate as true or false? Trying to get a good idea of how to read if statement with a mixture of && and || statements. I thought this was too may but if there is a way to refactor this code please let me know.
Aucun commentaire:
Enregistrer un commentaire