I wouldnt want to go over any code you guys have written
Speed is really irrevelant in such a case and you cant really say shorter code is the fastest one.
I would write it as clear as possible and in a more logical way.
this is clear but it is not logical
Code:
if ( a==1)
{
if (b==5)
stuff
else if (b==6)
stuff
else if (b==7)
stuff
}
else if (b==5)
{
if (a==2)
stuff
else if (a==3)
stuff
}
just use:
Code:
if (a==1)
//bla bla
else
//..
or
Code:
if (a==xx && b==zz)
else if ..