Why does this work:

public String dueDateTypeLetter() {
                
if (this.dueDateType() == null || this.dueDateType().equals("N")) {
return "";
}
return this.dueDateType();
}

and this doesn't....

public String dueDateTypeLetter() {
                
if (this.dueDateType().equals("N") || this.dueDateType() == null) {
return "";
}
return this.dueDateType();
}

obviously the difference is the order of checking in the 'if' statement...

I don't really care that I must check in a specific order... It just took me 
time to understand that the order was important.

Ted





      
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to