You can now short circuit an If statement using AndAlso instead of And.
VB Code:
If a = 2 AndAlso B = 4 Then ....
what this does is, if the first expression before the AndAlso returns false, then it will not evaluate the next expression after the AndAlso and will got straight to the Else statement.




Reply With Quote