In a VB.NET data logger I guard a list with If readings IsNot Nothing And readings.Count > 0 Then. When readings is Nothing the line throws a NullReferenceException, which is exactly what the first test was supposed to prevent. Replacing And with AndAlso fixes it.
What is the difference between the two operators, why does VB have both, and is there any reason to keep using plain And and Or?




