Hi everyone,
Just a quick question, i have a section in my code where there are quite a few (and still growing) if statements inside each other and was wondering how to combine them all?
Not sure how to go about it. I guess its not really necessary but as i'm teaching myself it would be nice to know if there was a better way.
Some sample code for you to laugh at
Thanks for your time and suggestions.Code:if(seterrorcheck[x][y] ! = seterrorcheck[z][t]) { if(possarray[x][y] != 0) { if(smallsquarefinal[x][y][candidate_check] != 0) { if(smallsquarefinal[x][y][candidate_check] == smallsquarefinal[x][y][t]) { Some Arbitrary Code } } } }
My program is coming along nicely.