31 Jan 2011
Updated: 31 Jan 2011
Rating: 4.88/5
Votes: 5
Popularity: 3.41
Licence: CPOL
Views: 9,110
Bookmarked: 3
Downloaded: 0
It is much easier (and cleaner) to test for success than to test for failure.Viz:if ( condition1 // Note: Test for success, not for fail && condition2 // Will be short-circuited if condition1 fails && condition3 // Will be short-circuited if condition1 or condition 2...
|