Actually it's better to have the "and's" instead of another if.
That way you will not have to also parse the second if.
In this example it is ok but if you had many conditions to check then i wouldn't recommend nested if's.It will slow your program down.




Reply With Quote