DataSet DS = NULL;
IF (DS! = null && ds.tables! = null) // 1
{
String s = "1";
}
IF (ds == null && ds.tables! = null) // 2
{
String s = "1";
}
IF (DS! = null || ds.tables! = null) // 3
{
String s = "1";
}
IF (DS == Null || DS.TABLES! = NULL) // 4
{
String s = "1";
}
--------------------------------
In the four judges above, 1 and 4 will not throw it, 2, 3 will throw anomalies.