Suppose I have an IF condition :
if (A || B)
∧
|
|
left
{
// do something
}
Now suppose that A
In many cases there is no practical difference apart from a tiny performance improvement. Where this becomes useful is if your checks are very expensive function calls (unlikely) or you need to check things in order. Say for example you want to check a property on something and to check if that something is nil first, you might do something like:
If (a != nil && a.attribute == valid) {}