vendredi 18 septembre 2015

IF loop execution syntax generating infinite loop

I have an if condition block which is running for infinity. Can someone explain me the behaviour? the block structure is:

if (flagTrue) { if (cond1) {...}
if (cond2) {...}
else { if(cond3) {...} }
 }

This was a legacy code so dont ask me the justification of this labyrinth. I'm only concerned with the execution of infinite loop here.

If someone can kindly tell me.

Aucun commentaire:

Enregistrer un commentaire