Is there a difference between using nested if statements and using one long if statement where there are a lot of arguments?
e.g.
if ( var1 == var2 && var3 == var4 )
{
//do something
}
or
if ( var1 == var2 )
{
if ( var3 == var4 )
{
//do something
}
}
I would like to know if there is any difference in doing things this way?
thanks