Possible Duplicate:
Does VB6 short-circuit complex conditions?
I am curious about how IF statements are executed in VB6. For example if I have the statement
If x And y Then
'execute some code
End If
Does the code move on if x
is not true? Or does it go ahead and evaluate y
even though there is no logical point?
Another example
If x Or y Then
'execute some code
End If
Does the code continue and evaluate y
if x
is true?
EDIT:
Is there a way to avoid nested IF
statements if I want to evaluate very complex conditions and I don't want to waste CPU time?